[Bug c++/68597] [6 Regression] ice in check_return_expr, at cp/typeck.c:8635

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 1 13:53:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68597

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-12-01
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
   Target Milestone|---                         |6.0
            Summary|ice inin check_return_expr, |[6 Regression] ice in
                   |at cp/typeck.c:8635         |check_return_expr, at
                   |                            |cp/typeck.c:8635
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r229629.  Before that it was rejected:
pr68597.C: In lambda function:
pr68597.C:4:64: error: inconsistent types ‘int’ and ‘double’ deduced for lambda
return type
   auto z = [=](double y) { if (y >= 1.0) return 1; else return x; };
                                                                ^


More information about the Gcc-bugs mailing list