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