[LLVMbugs] [Bug 21156] New: Partial specialization after implicit/explicit instantiation of class template.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Oct 4 06:10:11 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: ant.bikineev at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141004/cb2ad474/attachment.html>


More information about the llvm-bugs mailing list