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:
parent
89f1a6eccc
commit
75e0d03a94
|
@ -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
|
||||
|
|
|
@ -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" }
|
||||
|
|
Loading…
Reference in New Issue