diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-09-04 11:18:27 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-09-04 11:18:27 +0000 |
commit | 90deb76dc215b85562e894e99fb38e31151af664 (patch) | |
tree | a097d121950d563fee43df016b22ebc06e5b00c5 | |
parent | 678048254b98d983be685f344e25575c2c23dc8d (diff) | |
download | gcc-90deb76dc215b85562e894e99fb38e31151af664.zip gcc-90deb76dc215b85562e894e99fb38e31151af664.tar.gz gcc-90deb76dc215b85562e894e99fb38e31151af664.tar.bz2 |
* g++.old-deja/g++.pt/crash57.C: New test.
From-SVN: r36137
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash57.C | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 17d0c5f..ce77b3e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2000-09-04 Nathan Sidwell <nathan@codesourcery.com> + * g++.old-deja/g++.pt/crash57.C: New test. + +2000-09-04 Nathan Sidwell <nathan@codesourcery.com> + * g++.old-deja/g++.pt/crash56.C: New test. 2000-09-04 Nathan Sidwell <nathan@codesourcery.com> 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 0000000..8d5be6b --- /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 <nathan@codesourcery.com> + +// bug 382. We ICE'd rather than decay to an address. + +struct A { +template <class T> static void f(T) {} +}; +void (*h)(int) = A::f<int>; +void (*i)(int) = &A::f<int>; |