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