gcc/testsuite/g++.dg/parse/tmpl-tmpl-param1.C
raw| 1 | // PR c++/7259 |
| 2 | // Origin: Philipp Buettgenbach <[email protected]> |
| 3 | // Reduced version: Volker Reichelt <[email protected]> |
| 4 | // { dg-do compile } |
| 5 | |
| 6 | template <template <int> class T> class A : public T<0> {}; |
| 7 | |
| 8 | template <typename> struct B |
| 9 | { |
| 10 | template <int> class C {}; |
| 11 | typedef A<C> D; |
| 12 | }; |
| 13 | |
| 14 | B<void>::D d; |