[Bug c++/53531] <,,,,> accepted as template arguments for variadic template
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 10 11:01:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53531
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-10 11:01:40 UTC ---
It's now rejected on trunk:
c.cc:3:15: error: template argument 1 is invalid
int i = S<,,,,>::undefined;
^
c.cc:3:15: error: template argument 2 is invalid
c.cc:3:15: error: template argument 3 is invalid
c.cc:3:15: error: template argument 4 is invalid
c.cc:3:15: error: template argument 5 is invalid
(I might have been using an older 4.8 snapshot when I reported the bug, not
sure now.)
Jason, any idea which patch fixed these cases and if we need anything in the
testsuite to prevent regressions before closing it?
More information about the Gcc-bugs
mailing list