Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg14.C
blob: 352ccc41508fcc0a2334ae89d7a0ca1b701b96b2 [
file
] [
log
] [
blame
]
// PR c++/46129
// The default argument for A<int>::B::operator() should not be required
template
<
class
T
>
struct
A
{
struct
B
{
void
operator
()
(
const
T
&
d_
=
f
(
T
())
)
{
}
};
};
int
main
()
{
A
<int>
::
B b
;
}