Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / defarg14.C
blob1fe87e39dc714a8b00657355bf2c31420b35ba56
1 // PR c++/46129
2 // The default argument for A<int>::B::operator() should not be instantiated
4 template <class T>
5 struct A {
6   struct B {
7     void operator () (const T& d_ = f(T()) ) { }
8   };
9 };
11 int main() {
12   A<int>::B b;