This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47220] New: [C++0x] invalid code using template with variable argument list is accepted


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]