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

Reply via email to