OSDN Git Service

* g++.old-deja/g++.pt/crash57.C: New test.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Sep 2000 11:18:27 +0000 (11:18 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Sep 2000 11:18:27 +0000 (11:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36137 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/crash57.C [new file with mode: 0644]

index 17d0c5f..ce77b3e 100644 (file)
@@ -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 (file)
index 0000000..8d5be6b
--- /dev/null
@@ -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>;