+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
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" }