[Bug c++/89450] RFC: Strengthen -fstrict-enums

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 22:09:00 GMT 2019


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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #8)
> (In reply to Martin Liška from comment #7)
> > in switch statements, we have a huge patch:
> > https://build.opensuse.org/package/view_file/network:chromium/chromium-beta/
> > chromium-non-void-return.patch?expand=1
> 
> Part of it should be resolved if you define NOTREACHED correctly ....  Maybe
> to __builtin_unreachable.

Yep, that's exactly what we've been doing :)


More information about the Gcc-bugs mailing list