[Bug c/7652] -Wswitch-break : Warn if a switch case falls through
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 18 11:12:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #14 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-09-18 11:10:39 UTC ---
> In an ideal world, it would be great if GCC had a compatible implementation
> using C++11 attributes (except for a namespace of the attribute), or for
> example, using a built-in function. So that it was possible to have the same
> syntax in source code, at least using a macro. Command-line flags compatibility
> would also be nice.
I am pretty sure that if a proper patch is submitted to GCC, it will get
approved, even without the special attribute (that could be a follow-up patch).
The reason this has not been implemented is simply that no one has stepped
forward to do the work.
More information about the Gcc-bugs
mailing list