From: Nathan Sidwell Date: Mon, 4 Sep 2000 11:18:27 +0000 (+0000) Subject: * g++.old-deja/g++.pt/crash57.C: New test. X-Git-Tag: prereleases/libstdc++-2.92~4284 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90deb76dc215b85562e894e99fb38e31151af664;p=thirdparty%2Fgcc.git * g++.old-deja/g++.pt/crash57.C: New test. From-SVN: r36137 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 17d0c5fd7d90..ce77b3e7ee71 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-09-04 Nathan Sidwell + + * g++.old-deja/g++.pt/crash57.C: New test. + 2000-09-04 Nathan Sidwell * g++.old-deja/g++.pt/crash56.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash57.C b/gcc/testsuite/g++.old-deja/g++.pt/crash57.C new file mode 100644 index 000000000000..8d5be6b30cc7 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash57.C @@ -0,0 +1,12 @@ +// Build don't link: +// +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 11 Aug 2000 + +// bug 382. We ICE'd rather than decay to an address. + +struct A { +template static void f(T) {} +}; +void (*h)(int) = A::f; +void (*i)(int) = &A::f;