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