[Bug c++/78345] [5/6/7 Regression] ICE on invalid c++ code on x86_64-linux-gnu (internal compiler error: in cxx_eval_outermost_constant_expr, at cp/constexpr.c:4464)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 29 11:49:00 GMT 2016


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If the initializer is e.g. 3.0f instead of [] {}, then it is rejected because
of the type mismatch, so I'd say the bug is in not actually rejecting the
initialization of struct S by lambda, then we wouldn't ICE on the type
mismatch.
But no idea where to do that.


More information about the Gcc-bugs mailing list