gcc/testsuite/g++.dg/cpp2a/class-deduction-alias19.C
raw| 1 | // PR c++/114377 |
| 2 | // { dg-do compile { target c++20 } } |
| 3 | |
| 4 | template <template <typename> typename Iterator> |
| 5 | struct K {}; |
| 6 | |
| 7 | template <typename C, typename IteratorPolicy> |
| 8 | class Foo {}; |
| 9 | |
| 10 | template <typename C, template<typename> typename TTP> |
| 11 | using Bar = Foo<C, K<TTP>>; |
| 12 | |
| 13 | void s() { |
| 14 | Bar(1); // { dg-error "failed|no match" } |
| 15 | } |