Hi,

On Wed, 1 May 2019, Pitr Kaye wrote:

These ambiguous anon structs compile without error.

Yes.  Even the more obviously broken struct definition
  struct S { int x, x; };
is compiled without error.

A compiler error message would make debugging much easier.

Sure, but it also would mean slower parsing (with current data structures adding a check that is quadratic in the number of struct members). It's generally the case that TCC doesn't deal well with non-conforming source code, that's a side effect of it being tiny and quick :) I'm not sure if we want to change this.


Ciao,
Michael.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to