This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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; };
                                                                ^

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]