]>
Commit | Line | Data |
---|---|---|
9188c363 MM |
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 |