gcc/testsuite/g++.dg/template/ttp29.C
raw| 1 | // PR c++/70778 |
| 2 | |
| 3 | template <class KeyType> |
| 4 | struct Stuff |
| 5 | { |
| 6 | template <KeyType, class> |
| 7 | struct AddToFront; |
| 8 | |
| 9 | template <KeyType ToAdd, template<KeyType> class Holder, KeyType Indexs> |
| 10 | struct AddToFront<ToAdd, Holder<Indexs> > |
| 11 | { |
| 12 | }; |
| 13 | }; |
| 14 | |
| 15 | template <unsigned> |
| 16 | struct Holder {}; |
| 17 | |
| 18 | int main() |
| 19 | { |
| 20 | Stuff<unsigned>::AddToFront<0, Holder<24> > t; |
| 21 | } |