]> granicus.if.org Git - clang/commitdiff
Add a testcase which uses an UnresolvedUsingTypenameDecl as the base of an NNS.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 20 Jun 2013 00:04:23 +0000 (00:04 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 20 Jun 2013 00:04:23 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184386 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/using-decl-templates.cpp

index 2f8abca02d6e5ca2653a487476c7a3ba9ecfbab7..2fc679564255fb0e51d2cdafcb5e36c22f9cc810 100644 (file)
@@ -80,3 +80,8 @@ namespace PR10883 {
     void foo(const Container& current); // expected-error {{unknown type name 'Container'}}
   };
 }
+
+template<typename T> class UsingTypenameNNS {
+  using typename T::X;
+  typename X::X x;
+};