Hello,

On Thu, 21 Jan 2021, Elijah Stone wrote:

Patch is attached to fix tcc scoping behaviour. Test should be self-explanatory. (Citation: c11 §6.8.4p3 and §6.8.5p5.)

Nearly, but your testcase isn't completely C99/C11. It's not related to the scoping issue you fixed, but to a side constraint for the 'for' statement:

...
    for (struct foo { int m; } x;;)
...

(both in f2 and f4)

You can't declare a struct in the declaration part of the for stmt (6.8.5p3), only objects of auto and register class.

Testcases we add for conformance should be conforming themself :)

Apart from that: thank you! (I have the feeling the added number of lines could be reduced by some factoring, but that can always be done later)


Ciao,
Michael.
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to