This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53531] <,,,,> accepted as template arguments for variadic template
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jul 2012 11:01:40 +0000
- Subject: [Bug c++/53531] <,,,,> accepted as template arguments for variadic template
- Auto-submitted: auto-generated
- References: <bug-53531-4@http.gcc.gnu.org/bugzilla/>
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?