This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46476] Missing Warning about unreachable code after return


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46476

Franz Sirl <sirl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sirl at gcc dot gnu.org

--- Comment #10 from Franz Sirl <sirl at gcc dot gnu.org> ---
Clang does also have -Wunreachable-code-break and -Wunreachable-code-return,
which are really nice to have because you can turn them into errors separately.
But even clang misses a few cases that VS2015 can detect.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]