struct X { int a; }

X[1] x;

x[0] = {3};

or

x[0] = {a:3};

fails;

Should the syntax not extend to the case of array assignment? This avoids a double copy.

X y = {3};

works fine.

So one has to do

x[0] = y;


Reply via email to