[Bug c++/92909] [8/9/10 Regression] ICE on incorrect lambda inside variadic template

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 11 18:59:00 GMT 2019


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid,
                   |                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-12-11
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
   Target Milestone|---                         |8.4
            Summary|ICE on incorrect lambda     |[8/9/10 Regression] ICE on
                   |inside variadic template    |incorrect lambda inside
                   |                            |variadic template
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Before r251433 this used to be rejected:
pr92909.C: In lambda function:
pr92909.C:4:19: error: parameter packs not expanded with ‘...’:
   []{ using T = Ts; }();
                   ^
pr92909.C:4:19: note:         ‘Ts’
afterwards it is accepted without -g and ICEs with -g.
clang++ seems to reject it in all cases.
So, tentatively marking as accepts-invalid/ice-on-invalid-code.


More information about the Gcc-bugs mailing list