ptrmem7.C: Simplified the test case to not hit an ICE regression.

* g++.dg/template/ptrmem7.C: Simplified the test case to not hit
	an ICE regression.

From-SVN: r74665
This commit is contained in:
Giovanni Bajo 2003-12-16 03:09:34 +00:00
parent 89f1a6eccc
commit 75e0d03a94
2 changed files with 5 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2003-12-16 Giovanni Bajo <giovannibajo@gcc.gnu.org>
* g++.dg/template/ptrmem7.C: Simplified the test case to not hit
an ICE regression.
2003-12-15 Mark Mitchell <mark@codesourcery.com>
PR c++/10926

View File

@ -27,17 +27,3 @@ X<&S::i,S> x = X<&S::i,S>();
X<&S::i,S> x2 = X<&S2::i,S>();
X<&S::i,S> y = X<&S::j,S>(); // { dg-error "" }
X<&S::i,S> z = X<&R::i,S>(); // { dg-error "" }
template <class T>
struct Foo
{
void foo(void)
{
X<&T::i,T> x = X<&T::i,T>();
X<&S::i,S> x2 = X<&S2::i,S>();
X<&S::i,S> y = X<&S::j,S>(); // { dg-error "" }
X<&S::i,S> z = X<&R::i,S>(); // { dg-error "" }
}
};
template struct Foo<S>; // { dg-error "instantiated from" }