On Mon, 6 Feb 2023, Qing Zhao via Gcc-patches wrote: > In GCC14: > > 1. Include this new warning -Wgnu-varaible-sized-type-not-at-end to -Wall > 2. Deprecate this extension from GCC. (Or delay this to next release?).
Any deprecation, or inclusion in -Wall, would best come with evidence about the prevalance of use (possibly unintentional, probably undesirable) of these extensions. For example, maybe someone could do a distribution rebuild with a patch to enable these warnings and report the results? Various misuses of flexible array members are only pedwarns-if-pedantic because of such uses - and while the original motivating case <https://gcc.gnu.org/legacy-ml/gcc-patches/2002-08/msg01149.html> was _G_config.h, which has since been fixed (though existing installed headers from old glibc would need fixincluding, at least if it becomes an error), it's very plausible there are uses of these extensions elsewhere. -- Joseph S. Myers jos...@codesourcery.com