http://llvm.org/bugs/show_bug.cgi?id=8700

           Summary: clang++ accepts storage class on explicit template
                    specialization
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


example code:

template<typename T>
static void foo();

template<>
static void foo<void>();

g++ 4.3 and higher will reject this code with "error: explicit template
specialization cannot have a storage class". This is core defect #605
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#605

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to