This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35722] New: [C++0x] Variadic templates expansion into non-variadic class template
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Mar 2008 17:31:36 -0000
- Subject: [Bug c++/35722] New: [C++0x] Variadic templates expansion into non-variadic class template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following well-formed example produces the incorrect error:
error: cannot expand ?G ...? into a fixed-length argument list
template<typename G = void, typename H = void>
struct foo
{};
template<typename... G>
struct bar : foo<G...>
{};
int main() {
bar<int, float> f;
}
--
Summary: [C++0x] Variadic templates expansion into non-variadic
class template
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dgregor at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35722