[LLVMbugs] [Bug 8700] New: clang++ accepts storage class on explicit template specialization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 27 01:16:27 PST 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list