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++/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


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.

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