Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype24.C
blob: 57fbe430e1c9c165b62b0117d7d2b44c5eb2d7d1 [
file
] [
log
] [
blame
]
// PR c++/49808
template
<
class
X
,
X g
>
struct
A
{
A
()
{
float
r
=
g
(
0
);
}
};
struct
f_t
{
float
operator
()
(
float
)
const
{
return
1
;
}
};
f_t
f
;
A
<
f_t
&,
f
>
x
;