Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
funptr1.C
blob: bf63c122e8bc8e6ed549022eb17504e8d4ac8b2c [
file
] [
log
] [
blame
]
// 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
>
>;