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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Note clang rejects it with:

clang++ pr106033.C -c -std=c++2a
pr106033.C:6:27: error: expected ')'
   }.operator()<args>(args...)...
                          ^
pr106033.C:6:22: note: to match this '('
   }.operator()<args>(args...)...
                     ^
pr106033.C:6:6: error: missing 'template' keyword prior to dependent template
name 'operator()'
   }.operator()<args>(args...)...
     ^
pr106033.C:8:4: note: in instantiation of function template specialization
'foo()::(anonymous class)::operator()<1, 2, 3>' requested here
 }.operator()<1, 2, 3>();
   ^
2 errors generated.

Reply via email to