Open
Description
This program
struct B {
int i, j;
};
struct A {
A(A&&) = delete;
A(const B &) {}
};
A a( { { 1, 2 } } );
is accepted by GCC and EDG. But Clang complains:
<source>:10:3: error: call to deleted constructor of 'A'
10 | A a( { { 1, 2 } } );
| ^ ~~~~~~~~~~~~
<source>:6:5: note: 'A' has been explicitly marked deleted here
6 | A(A&&) = delete;
| ^
Online demo: https://gcc.godbolt.org/z/eT9M59acx