|
From: | Michael Matz |
Subject: | Re: [Tinycc-devel] core dump with flex arrays |
Date: | Tue, 16 Feb 2021 02:30:28 +0100 (CET) |
User-agent: | Alpine 2.21 (LSU 202 2017-01-01) |
Hello, On Mon, 15 Feb 2021, Elijah Stone wrote:
On Tue, 16 Feb 2021, Michael Matz wrote:(Note that TCC and GCC behave different with non-top-level flex array members: GCC accepts but discards initializers of these with a warning, TCC rejects them. That's fine, flex array members are an extension.)Flexible array members are standard as of c99.
Sorry, imprecise language on my part. Flex array members are c99, but a struct containing one may not be nested in another struct. Accepting _that_ is the extension of GCC that TCC rejects.
Ciao, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |