[Bug c++/72800] [5/6/7 Regression] ICE on invalid C++14 code with initialized lambda capture: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in add_capture, at cp/lambda.c:505
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 4 14:24:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72800
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msebor at gcc dot gnu.org,
| |paolo.carlini at oracle dot com
Known to fail| |5.3.0, 6.1.0, 7.0
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The ICE first appears in r210829:
r210829 | paolo | 2014-05-22 18:28:24 -0400 (Thu, 22 May 2014) | 16 lines
/cp
2014-05-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61088
* lambda.c (add_capture): Enforce that capture by value requires
complete type.
* typeck2.c (cxx_incomplete_type_inform): Early return if
TYPE_MAIN_DECL is null.
/testsuite
2014-05-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61088
* g++.dg/cpp0x/lambda/lambda-ice13.C: New.
* g++.dg/cpp0x/lambda/lambda-ice7.C: Adjust.
More information about the Gcc-bugs
mailing list