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)
llvm-svn: 184386

clang/test/SemaCXX/using-decl-templates.cpp

index 2f8abca..2fc6795 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;
+};