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