http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55671
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-13 11:29:24 UTC --- This is definitely by design, as the snippet I posted also clearly shows. The documentation could be maybe improved I agree, but it's a very general issue that it often gives more space to C than C++ because the latter is more recent in the development history of GCC. Maybe in this case we could repeat the example at the end and emphasize that we do *not* warn in C++ because it's indeed a common idiom in C++. Hey, C and C++ are two different languages, remember, and many details in the Standards are different also in basic (eg, no classes, no templates) areas.