This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ PATCH, committed] fixed ptrmem7.C
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 16 Dec 2003 04:12:09 +0100
- Subject: [C++ PATCH, committed] fixed ptrmem7.C
Hello,
ptrmem7.C was hitting an ICE, totally unrelated to what it's supposed to test.
I simplified it a little bit (as discussed with Mark off-list).
Giovanni Bajo
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/ChangeLog,v
retrieving revision 1.3262
diff -c -3 -p -r1.3262 ChangeLog
*** ChangeLog 16 Dec 2003 02:46:29 -0000 1.3262
--- ChangeLog 16 Dec 2003 03:08:42 -0000
***************
*** 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: g++.dg/template/ptrmem7.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/template/ptrmem7.C,v
retrieving revision 1.1
diff -c -3 -p -r1.1 ptrmem7.C
*** g++.dg/template/ptrmem7.C 14 Nov 2003 05:13:45 -0000 1.1
--- g++.dg/template/ptrmem7.C 16 Dec 2003 03:08:42 -0000
*************** X<&S::i,S> x = X<&S::i,S>();
*** 27,43 ****
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" }
--- 27,29 ----