ptrmem7.C: Simplified the test case to not hit an ICE regression.
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 16 Dec 2003 03:09:34 +0000 (03:09 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Tue, 16 Dec 2003 03:09:34 +0000 (03:09 +0000)
* g++.dg/template/ptrmem7.C: Simplified the test case to not hit
an ICE regression.

From-SVN: r74665

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/ptrmem7.C

index b3e3e1a..6e1f126 100644 (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
index 59b28a3..cd907f2 100644 (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" }