aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias5.C
blob: 69143a3277b9b4be86d090b71fa6eb38db2ecf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/99180
// { dg-do compile { target c++17 } }

template <bool, typename... Ts>
struct A {
  A(Ts...) {}
};

template <typename... Ts>
using B = A<false, Ts...>;

template <typename... Ts>
A(Ts...) -> A<true, Ts...>;

int main() {
  B{};				// { dg-error "alias" "" { target c++17_down } }
  return 0;
}