From 75e0d03a94c1b3a24717e0c2f1241ee3d77c3259 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Tue, 16 Dec 2003 03:09:34 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/ptrmem7.C | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b3e3e1aa845..6e1f126e670 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-12-16 Giovanni Bajo + + * g++.dg/template/ptrmem7.C: Simplified the test case to not hit + an ICE regression. + 2003-12-15 Mark Mitchell PR c++/10926 diff --git a/gcc/testsuite/g++.dg/template/ptrmem7.C b/gcc/testsuite/g++.dg/template/ptrmem7.C index 59b28a36296..cd907f21264 100644 --- a/gcc/testsuite/g++.dg/template/ptrmem7.C +++ b/gcc/testsuite/g++.dg/template/ptrmem7.C @@ -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 -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; // { dg-error "instantiated from" } -- 2.30.2