| 1 |
// PR c++/9282 |
| 2 |
// Origin: Thomas Richter <[email protected]> |
| 3 |
// { dg-do compile } |
| 4 |
|
| 5 |
typedef void (*fptr)(); |
| 6 |
|
| 7 |
struct A |
| 8 |
{ |
| 9 |
template<int> static void foo() {} |
| 10 |
template<fptr f> static void bar() { (*f)(); } |
| 11 |
}; |
| 12 |
|
| 13 |
fptr f = A::bar< A::foo<0> >; |