summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash57.C
blob: eb6d61595b1360874cf875fda3ddaf92c0027dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// 
// 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>;