Also is it this rule valid for designated initializations?For example if we havestruct A
{
int x, z;
};struct B
{
int x, y, z;
};void g( const A & )
{
std::cout << "void g( const A & )\n";
}void g( const B & )
{
std::cout << "void g( const B & )\n";
}
then is this callg( { .x = 1, .z = 2 } );
ambiguous or the function with the parameter const A & will be called?