[Bug c++/106024] ICE on missing template keyword in template method call in pack expansion
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 20 08:13:31 GMT 2022
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.
More information about the Gcc-bugs
mailing list