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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-07-19

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in r13-1390-g07ac550393d00fca where we rejected the code:

g++ pr106351.C -c
pr106351.C: In member function ‘void C<Args>::f()’:
pr106351.C:9:15: warning: expected ‘template’ keyword before dependent template
name [-Wmissing-template-keyword]
    9 |             }.operator()<Args>(),
      |               ^~~~~~~~
      |               template
pr106351.C:9:30: error: expected primary-expression before ‘>’ token
    9 |             }.operator()<Args>(),
      |                              ^
pr106351.C:9:32: error: expected primary-expression before ‘)’ token
    9 |             }.operator()<Args>(),
      |                                ^
pr106351.C:9:30: error: binary expression in operand of fold-expression
    9 |             }.operator()<Args>(),
pr106351.C:9:30: error: operand of fold expression has no unexpanded parameter
packs

Reply via email to