[Bug c++/35477] New: Compiling error with template subclass of a variadic template class
rodolfo at rodsoft dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 5 21:35:00 GMT 2008
The following code fails to compile on gcc-4.3.0-RC2 with -std=c++0x
template <class...ARGS> struct tuple {};
template <class A, class B> struct test {};
template <class... ARGS, class B> struct test<B, tuple<ARGS...>>
{
template <class T> struct inside {};
};
g++ exits saying:
error: parameter pack ÂARGSÂ must be at the end of the template parameter list
on line 5 (where struct inside is defined)
By removing the struct inside definition, it compiles fine.
--
Summary: Compiling error with template subclass of a variadic
template class
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rodolfo at rodsoft dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35477
More information about the Gcc-bugs
mailing list