* g++.old-deja/g++.pt/typename26.C: New test.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 11 Aug 2000 09:12:43 +0000 (09:12 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 11 Aug 2000 09:12:43 +0000 (09:12 +0000)
From-SVN: r35628

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/typename26.C [new file with mode: 0644]

index 3a5cd6f1a638e725d71a58fda1d92724cad1e378..6b8d10e89ce139dff34c76587094fdb5204c9a35 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * g++.old-deja/g++.pt/typename26.C: New test.
+
 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
 
        * gcc.dg/920413-1.c: Allow for 'traditional C rejects 'U' suffix'
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename26.C b/gcc/testsuite/g++.old-deja/g++.pt/typename26.C
new file mode 100644 (file)
index 0000000..c9bb0b2
--- /dev/null
@@ -0,0 +1,19 @@
+// Build don't link:
+// 
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 9 Aug 2000 <nathan@codesourcery.com>
+
+// We failed to spot where a typename T::t didn't actually declare
+// anything. [7.1.5.3]/1
+
+template<class LB> struct C
+{
+  typename LB::DataType;      // ERROR - does not declare anything
+  typename LB::DataType m;
+};
+
+struct B {};
+struct A {
+  B;                          // ERROR - does not declare anything
+  B m;
+};