https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93082
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #52980|0 |1 is obsolete| | --- Comment #18 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 61030 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61030&action=edit Patch undet test This is being tested on the darwin trunk and 14.2 branches (it is clearly not suitable for stage #4). This is the current behaviour on Darwin (which defaults to accepting the clang extension with this patch) $ ./gcc/xgcc -Bgcc .../Frameworks/Security.framework/Headers/Authorization.h -fsyntax-only <no output> $ ./gcc/xgcc -Bgcc .../Frameworks/Security.framework/Headers/Authorization.h -fsyntax-only -fno-allow-const-var-array-size .../Frameworks/Security.framework/Headers/Authorization.h:193:14: error: variably modified ‘bytes’ at file scope 193 | char bytes[kAuthorizationExternalFormLength]; | ^~~~~ $ ./gcc/xgcc -Bgcc .../Frameworks/Security.framework/Headers/Authorization.h -fsyntax-only -pedantic .../Library/Frameworks/Security.framework/Headers/Authorization.h:193:9: warning: variably modified ‘bytes’ at file scope [-Wpedantic] 193 | char bytes[kAuthorizationExternalFormLength]; | ^~~~ .$ ./gcc/xgcc -Bgcc .../Security.framework/Headers/Authorization.h -fsyntax-only -pedantic-errors ..../Frameworks/Security.framework/Headers/Authorization.h:193:9: error: variably modified ‘bytes’ at file scope [-Wpedantic] 193 | char bytes[kAuthorizationExternalFormLength];