r184386 - Add a testcase which uses an UnresolvedUsingTypenameDecl as the base of an NNS.

Eli Friedman eli.friedman at gmail.com
Wed Jun 19 17:04:23 PDT 2013


Author: efriedma
Date: Wed Jun 19 19:04:23 2013
New Revision: 184386

URL: http://llvm.org/viewvc/llvm-project?rev=184386&view=rev
Log:
Add a testcase which uses an UnresolvedUsingTypenameDecl as the base of an NNS.


Modified:
    cfe/trunk/test/SemaCXX/using-decl-templates.cpp

Modified: cfe/trunk/test/SemaCXX/using-decl-templates.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/using-decl-templates.cpp?rev=184386&r1=184385&r2=184386&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/using-decl-templates.cpp (original)
+++ cfe/trunk/test/SemaCXX/using-decl-templates.cpp Wed Jun 19 19:04:23 2013
@@ -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;
+};





More information about the cfe-commits mailing list