[Bug c++/103236] [9/10/11/12 Regression] ICE: in tsubst_pack_expansion, at cp/pt.c:13162

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 14 21:25:01 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.5
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
      Known to fail|                            |8.1.0
            Summary|ICE: in                     |[9/10/11/12 Regression]
                   |tsubst_pack_expansion, at   |ICE: in
                   |cp/pt.c:13162               |tsubst_pack_expansion, at
                   |                            |cp/pt.c:13162
      Known to work|                            |7.1.0, 7.4.0
   Last reconfirmed|                            |2021-11-14

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 7.4.0 and before did:
<source>: In lambda function:
<source>:5:35: error: parameter packs not expanded with '...':
     [](auto) { }([](auto... x) { x; });
                                   ^
<source>:5:35: note:         'x'
<source>: In function 'void foo(const Ts& ...)':
<source>:6:4: error: operand of fold expression has no unexpanded parameter
packs
   ([] {
    ~~~~
     [](auto) { }([](auto... x) { x; });
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   }(), ...);
   ~^~


More information about the Gcc-bugs mailing list