OSDN Git Service

* cp-tree.def (DECL_STMT): Make it smaller.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg13.C
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 template <class T>
5 void f (int i)
6 {
7   struct S { void g (int j = i) {} }; // ERROR - default argument uses local
8
9   S s; // ERROR - instantiated here
10 }
11
12 template void f<double>(int); // ERROR - instantiated here
13