Commit f218d820 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

re PR c++/12796 (Wrong line number in error message)

	PR c++/12796
	* g++.dg/template/crash13.C: Adjust expected error location.
	* g++.old-deja/g++.brendan/ns1.C: Likewise.

From-SVN: r73175
parent 441b941a
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> 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
* g++.dg/bprob/bprob.exp: Disable test on arm-elf configs. * g++.dg/bprob/bprob.exp: Disable test on arm-elf configs.
......
...@@ -10,9 +10,9 @@ template<typename, typename T=void> struct A ...@@ -10,9 +10,9 @@ template<typename, typename T=void> struct A
}; };
template <typename T> struct C template <typename T> struct C
{ // { dg-error "not a base type" } {
typedef typename A<T>::B X; typedef typename A<T>::B X;
X::Y; X::Y; // { dg-error "not a base type" }
}; };
C<void> c; // { dg-error "instantiated" } C<void> c; // { dg-error "instantiated" }
...@@ -12,7 +12,7 @@ class C ...@@ -12,7 +12,7 @@ class C
}; };
class D2 : public B 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 B::f; // ok: B is a base of D2
using C::g; // error: C isn't a base of D2 using C::g; // { dg-error "not a base type" }
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment