2 // { dg-do compile { target c++20 } }
3 // Initializing arrays in a member init list using ()-init, invalid cases.
5 struct S { int x, y; };
6 struct N { int x, y; N(int, int); };
10 A() : a(1, 2) { } // { dg-error "could not convert" }
15 B() : a(1) // { dg-error "could not convert" }
19 // Copy-initialization does not consider explicit ctors.
20 struct E { explicit E(int); };
24 C() : a(4, 5) { } // { dg-error "could not convert" }