PR c++/12796
* g++.dg/template/crash13.C: Adjust expected error location.
* g++.old-deja/g++.brendan/ns1.C: Likewise.
From-SVN: r73175
+2003-11-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+ PR c++/12796
+ * g++.dg/template/crash13.C: Adjust expected error location.
+ * g++.old-deja/g++.brendan/ns1.C: Likewise.
+
2003-10-31 Richard Earnshaw <rearnsha@arm.com>
* g++.dg/bprob/bprob.exp: Disable test on arm-elf configs.
};
template <typename T> struct C
-{ // { dg-error "not a base type" }
+{
typedef typename A<T>::B X;
- X::Y;
+ X::Y; // { dg-error "not a base type" }
};
C<void> c; // { dg-error "instantiated" }
};
class D2 : public B
-{ // { dg-error "" } type C is not a base type for type D2
- using B::f; // ok: B is a base of D
- using C::g; // error: C isn't a base of D2
+{
+ using B::f; // ok: B is a base of D2
+ using C::g; // { dg-error "not a base type" }
};