[llvm-bugs] [Bug 26692] New: Clang fails to recognize unqualified template template argument in C++11

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 22 05:16:07 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26692

            Bug ID: 26692
           Summary: Clang fails to recognize unqualified template template
                    argument in C++11
           Product: clang
           Version: 3.7
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jaak+llvm-bugs at ristioja.ee
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat test.cpp
template <template <typename> class> using T = void;
template <typename> struct A { using T2 = T<A>; };

$ clang++ -std=c++11 -c test.cpp -o test
test.cpp:2:45: error: template argument for template template parameter must be
a class template or type alias template
template <typename> struct A { using T2 = T<A>; };
                                            ^
1 error generated.

Tested with Clang 3.7.1. Seems to work fine with GCC.

-- 
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/20160222/aff4dd92/attachment.html>


More information about the llvm-bugs mailing list