gcc/testsuite/g++.dg/template/canon-type-20.C
raw| 1 | // PR c++/109531 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-additional-options "--param=hash-table-verification-limit=1000" } |
| 4 | |
| 5 | template<class T> |
| 6 | using A = int; |
| 7 | |
| 8 | struct B { using type = int; }; |
| 9 | struct C { using type = A<int>; }; |
| 10 | |
| 11 | template<class T> |
| 12 | struct D { |
| 13 | template<template<class> class TT> |
| 14 | TT<typename T::type> f(); |
| 15 | }; |
| 16 | |
| 17 | template struct D<B>; |
| 18 | template struct D<C>; |