PR c++/3478
* g++.dg/parse/error10.C: New test.
* g++.dg/template/arg2.C: Accept "invalid type" error.
From-SVN: r75689
+2004-01-11 Ian Lance Taylor <ian@wasabisystems.com>
+
+ PR c++/3478
+ * g++.dg/parse/error10.C: New test.
+ * g++.dg/template/arg2.C: Accept "invalid type" error.
+
2004-01-11 Jakub Jelinek <jakub@redhat.com>
PR middle-end/13392
--- /dev/null
+// PR c++/3478
+// { dg-options "" }
+
+template <typename> struct A
+{
+ enum E {};
+};
+
+template <typename T> void foo()
+{
+ enum A<void>::E e1;
+ typename A<T>::E e2;
+ enum A<T>::E e3;
+ enum typename A<T>::E e4; // { dg-error "" }
+}
void fn ()
{
class L {};
- X<L> f; // { dg-error "uses local type|trying to instantiate|no type" "" }
+ X<L> f; // { dg-error "uses local type|trying to instantiate|no type|invalid type" "" }
}