[LLVMbugs] [Bug 15878] New: partial specialization of template class after using namespace causes non-template class error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 30 18:42:53 PDT 2013


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

            Bug ID: 15878
           Summary: partial specialization of template class after using
                    namespace causes non-template class error
           Product: clang
           Version: 3.1
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mmehlich at semanticdesigns.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Code:

namespace A {
    namespace B {
        template <typename T> class X;
    }
    using namespace B;
    template<typename T> class X;
    template<typename T> class X<T*> { };
};

clang 3.1 output:

>>> clang test.cpp
test.cpp:7:29: error: explicit specialization of non-template class 'X'
        template<typename T> class X<T*> { };
                                   ^~~~~
1 error generated.

-- 
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/20130501/00de8370/attachment.html>


More information about the llvm-bugs mailing list