Why do seemingly all compilers reject the following program? (https://godbolt.org/z/EK8zW34nY)
struct A
{
explicit A() {}
};
int main()
{
A a = {};
}
a
should be value-initialized from what I can tell and that should in turn select a constructor as if to default-initialize a
Default-initialization does not exclude explicit
constructors.
1