1 // PR c++/9282
2 // Origin: Thomas Richter <thor@math.tu-berlin.de>
3 // { dg-do compile }
4 
5 typedef void (*fptr)();
6 
7 struct A
8 {
fooA9     template<int>    static void foo() {}
barA10     template<fptr f> static void bar() { (*f)(); }
11 };
12 
13 fptr f = A::bar< A::foo<0> >;
14