* g++.dg/parse/typename6.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75970
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-01-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+
+ PR c++/13407
+ * g++.dg/parse/typename6.C: New test.
+
2004-01-15 Geoffrey Keating <geoffk@apple.com>
PR pch/13361
--- /dev/null
+// { dg-do compile }\r
+// Contributed by Matt Austern <austern at apple dot com>\r
+// PR c++/13407: Gracefully handle keyword typename in base class specifier.\r
+\r
+struct A { };\r
+struct B { typedef A Type; };\r
+\r
+template <typename T>\r
+struct X : \r
+ public typename T::Type // { dg-error "not allowed in this context" }\r
+{ };\r
+\r
+X<B> x;\r
+\r
+struct C : \r
+ public typename A // { dg-error "not allowed outside of templates" }\r
+{ };\r