This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47220] New: [C++0x] invalid code using template with variable argument list is accepted
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 7 Jan 2011 23:34:12 +0000
- Subject: [Bug c++/47220] New: [C++0x] invalid code using template with variable argument list is accepted
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47220
Summary: [C++0x] invalid code using template with variable
argument list is accepted
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
----- testcase.C -----
template < typename ... > struct A;
struct B : A <
{
};
----------------------
(note the "A <")
Compiler output:
$ gcc -std=c++0x testcase.C -c
(no output)
Tested revisions:
r168552 - accepted
4.5 r168062 - accepted
4.4 r168062 - accepted
4.3.5 - accepted