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++/36740] New: Compiler accepts invalid syntax in variadic template specialization


Compiler is g++.exe (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502

This invalid snippet compiles without errors, with the specialization being
silently ignored:

=========
template <typename T, typename U, typename... Args>
struct X
{};

template <typename T, typename... Args>
struct X<T, T, ...Args>  // invalid! should be Args...
{};
=========


-- 
           Summary: Compiler accepts invalid syntax in variadic template
                    specialization
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: abarbati at iaanus dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36740


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