Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
>
>;