| 1 |
// PR c++/118532 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
// { dg-options "" } |
| 4 |
|
| 5 |
constexpr int fn0 () { return 0; } |
| 6 |
constexpr int fn1 () { return 1; } |
| 7 |
|
| 8 |
struct S { |
| 9 |
explicit(fn0()) S(int, int, int); |
| 10 |
#define I8 int, int, int, int, int, int, int, int |
| 11 |
#define I64 I8, I8, I8, I8, I8, I8, I8, I8 |
| 12 |
explicit(fn1()) S(I64, I64, I64, I64, I8); |
| 13 |
}; |
| 14 |
|
| 15 |
int |
| 16 |
main () |
| 17 |
{ |
| 18 |
S s4 = { |
| 19 |
#undef I8 |
| 20 |
#define I8 1, 2, 3, 4, 5, 6, 7, 8 |
| 21 |
I64, I64, I64, I64, I8 |
| 22 |
}; // { dg-error "converting" } |
| 23 |
} |