[Bug c++/57765] [C++11] Variadic Template Specialization does not follow the INCITS/=?UTF-8?Q?ISO=E2=80=8B?=/IEC 14882-2011 standard
trashyankes at wp dot pl
gcc-bugzilla@gcc.gnu.org
Mon Jul 1 09:28:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57765
trashyankes at wp dot pl changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trashyankes at wp dot pl
--- Comment #1 from trashyankes at wp dot pl ---
In version of C++0x standard I have (not final, 2011-02-28 N3225) section 14.1
paragraph 11:
"If a template-parameter of a class template has a default template-argument,
each subsequent template-parameter shall either have a default
template-argument supplied or be a template parameter pack. If a
template-parameter of a primary class template is a template parameter pack, it
shall be the last template-parameter. [ Note: These are not requirements for
function templates or class template partial specializations
because template arguments can be deduced (...) — end note ]"
If this is not changed then first example is valid and second isnt because you
cant deduced value of `int`.
More information about the Gcc-bugs
mailing list