tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Scoping fix


From: Michael Matz
Subject: Re: [Tinycc-devel] Scoping fix
Date: Thu, 21 Jan 2021 17:22:18 +0100 (CET)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]