On Mon, Mar 31, 2014 at 01:42:36PM +0100, Jay Foad wrote: > In this example I get a spurious error, but only when I elide some > braces *and* put parentheses around the literal: > > $ cat a.c > struct { > struct { > int i; > } a; > } x = { > (3) > }; > $ ./tcc a.c > a.c:6: error: cast expected
Some compilers accept it but issues warning (with -Wall). The following should always be valid: struct { struct { int i; } a; } x = { {3} }; John _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel