[cfe-dev] -Warray-bounds seems over-zealous on Clang

John McCall rjmccall at apple.com
Tue Jul 12 17:15:24 PDT 2011

Gentlemen, this is Clang;  we can differentiate between '1' as a literal
value and '1' resulting from a template- or macro-metaprogrammed
computation.  The former case has no legitimate examples and can
be safely assumed to be a pre-C99 flexible array member.  The latter
case should still be diagnosed using -Warray-bounds.


More information about the cfe-dev mailing list