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

           Summary: Explicit class template member function specialization
                    confusion
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


$ clang++ --version
clang version 2.9 (trunk 127169)
Target: x86_64-apple-darwin10
Thread model: posix

$ cat test.cc
namespace N { template<typename T> struct S { void f(); }; }
typedef N::S<int> T;
namespace N { template<> void T::f() {} }

$ clang++ -c test.cc
test.cc:3:34: error: no function template matches function template
specialization 'f'
namespace N { template<> void T::f() {} }
                                 ^
1 error generated.

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