You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GCC: error: variably modified 'c' at file scope
CompCert: error: size of array is not a compile-time constant
Clang -Wextra: compiles
Clang -pedantic: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
The problem? This is not a GNU extension. Either the warning is wrong or the code that shouldn't compile compiles.
Weirdly, MSVC has the same behavior as Clang but does not issue a warning.
Once it is confirmed, I'll file an Apple bug report, because an Xcode header, Security.framework/Headers/Authorization.h suffers from this issue and can only be compiled with Clang (so when this bug is patched don't tell me that I broke Apple's code :) )