gcc/testsuite/g++.old-deja/g++.jason/inline.C
raw| 1 | // { dg-do run } |
| 2 | // PRMS Id: 4341 |
| 3 | // Bug: Instantiating a template in the middle of processing the functions |
| 4 | // from another template screws up lineno/input_filename. |
| 5 | |
| 6 | #pragma implementation "C.h" |
| 7 | #line 1 "A.h" |
| 8 | #pragma interface |
| 9 | template <class T> class A {}; |
| 10 | #line 1 "C.h" |
| 11 | #pragma interface |
| 12 | template <class T> class C |
| 13 | { |
| 14 | public: |
| 15 | C() { A<T> *ap; } |
| 16 | ~C() { } |
| 17 | }; |
| 18 | #line 18 "inline.C" |
| 19 | int main() |
| 20 | { |
| 21 | C<int> c; |
| 22 | } |