gcc/testsuite/g++.dg/cpp2a/class-deduction-alias5.C
raw| 1 | // PR c++/99180 |
| 2 | // { dg-do compile { target c++17 } } |
| 3 | |
| 4 | template <bool, typename... Ts> |
| 5 | struct A { |
| 6 | A(Ts...) {} |
| 7 | }; |
| 8 | |
| 9 | template <typename... Ts> |
| 10 | using B = A<false, Ts...>; |
| 11 | |
| 12 | template <typename... Ts> |
| 13 | A(Ts...) -> A<true, Ts...>; |
| 14 | |
| 15 | int main() { |
| 16 | B{}; // { dg-error "alias" "" { target c++17_down } } |
| 17 | return 0; |
| 18 | } |