[LLVMbugs] [Bug 8905] New: Clang rejects partial specialization with non-type template argument of different type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 4 14:31:28 PST 2011


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

           Summary: Clang rejects partial specialization with non-type
                    template argument of different type
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


terfin:clang dgregor$ cat t.cpp 
template<char C1, char C2>
struct X;

template<int C1>
struct X<C1, C1>;

terfin:clang dgregor$ clang++ t.cpp 
t.cpp:5:10: error: non-type template argument depends on a template parameter
of
      the partial specialization
struct X<C1, C1>;
         ^~

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



More information about the llvm-bugs mailing list