gcc/testsuite/g++.old-deja/g++.pt/ttp54.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Reported by Bruce Eckel <[email protected]> |
| 4 | |
| 5 | // [temp.deduct.type] |
| 6 | // Make sure we treat <T> in the construct TT<T> as any type containing T. |
| 7 | |
| 8 | template <class T> class C |
| 9 | { |
| 10 | }; |
| 11 | |
| 12 | template <class T, template <class> class TT> void f (TT<T *> &t) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | int main () |
| 17 | { |
| 18 | C<char *> c; |
| 19 | f(c); |
| 20 | } |