There is a struct containing POD and default constructor deleted. Trying to aggregate-initalize an instance of the struct results in compilation error in g++9.1 when compiled with -std=c++2a
. The same code compiles fine with -std=c++17
.
struct S
{
int a;
S() = delete;
};
int main()
{
S s {.a = 0};
}