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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-02-27
                 CC|                            |msebor at gcc dot gnu.org
      Known to work|                            |7.3.0
     Ever confirmed|0                           |1
      Known to fail|                            |8.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisected to r257093 (gcc 8.0.1):

r257093 | jason | 2018-01-26 10:25:23 -0500 (Fri, 26 Jan 2018) | 8 lines

        PR c++/82514 - ICE with local class in generic lambda.

Before that GCC rejected it with:

pr84606.C: In lambda function:
pr84606.C:5:46: error: expected unqualified-id before ‘}’ token
     void __attribute__((common([] { struct d }))) g();
                                              ^
pr84606.C: In instantiation of ‘struct s<int>::<unnamed>’:
pr84606.C:6:5:   required from ‘struct s<int>’
pr84606.C:9:8:   required from here
pr84606.C:5:51: error: wrong number of arguments specified for ‘common’
attribute
     void __attribute__((common([] { struct d }))) g();
                                                   ^

Reply via email to