gcc/testsuite/g++.old-deja/g++.pt/crash57.C
raw| 1 | // { dg-do assemble } |
| 2 | // |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 11 Aug 2000 <[email protected]> |
| 5 | |
| 6 | // bug 382. We ICE'd rather than decay to an address. |
| 7 | |
| 8 | struct A { |
| 9 | template <class T> static void f(T) {} |
| 10 | }; |
| 11 | void (*h)(int) = A::f<int>; |
| 12 | void (*i)(int) = &A::f<int>; |