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

            Bug ID: 21156
           Summary: Partial specialization after implicit/explicit
                    instantiation of class template.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 13137
  --> http://llvm.org/bugs/attachment.cgi?id=13137&action=edit
Patch for this case

C++ [temp.class.spec]p.1 says, that:
"A partial specialization shall be declared before the first use of a class
template specialization that would make use of the partial specialization as
the result of an implicit or explicit instantiation in every translation unit
in which such a use occurs; no diagnostic is required."

GCC has diagnostic for this, while Clang just ignores it. I'm not sure,
probably Clang has its own politics in this case. I've attached a patch.

-- 
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