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

           Summary: Use of typedef for class template specialization in
                    explicit member specialization across namespaces fails
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


I believe Clang intends to support typedef names in explicit specializations of
members, but that breaks when they cross namespaces:

% cat x.cc
namespace N1 {
  template <typename T> struct S {
    void foo() {}
  };
}

namespace N2 {
  typedef N1::S<int> X;
}

namespace N1 {
  template<> void N2::X::foo() {}
}

% ./bin/clang -fsyntax-only x.cc
x.cc:12:26: error: no function template matches function template
specialization 'foo'
  template<> void N2::X::foo() {}
                         ^
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