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
This commit is contained in:
parent
441b941ac2
commit
f218d8208f
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
@ -10,9 +10,9 @@ template<typename, typename T=void> struct A
|
||||
};
|
||||
|
||||
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" }
|
||||
|
@ -12,7 +12,7 @@ class C
|
||||
};
|
||||
|
||||
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" }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user