☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg14.C
☽
☼
gcc/testsuite/g++.dg/template/defarg14.C
code
plain
raw
1
// PR c++/46129
2
// The default argument for A<int>::B::operator() should not be required
3
4
template <class T>
5
struct A {
6
struct B {
7
void operator () (const T& d_ = f(T()) ) { }
8
};
9
};
10
11
int main() {
12
A<int>::B b;
13
}