[Bug c++/80460] Incorrect fallthrough warning after [[noreturn]] function inside always-true conditional

thiago at kde dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 19 17:36:00 GMT 2017


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

--- Comment #7 from Thiago Macieira <thiago at kde dot org> ---
(In reply to Jakub Jelinek from comment #1)
> The warning is done before optimizations (except GENERIC opts), and can
> hardly be done much later.

I imagined it would be the case. Treat this as low priority.

I've added the [[fallthrough]] to the source code where this appeared to
silence the warning. Arguably, the author should have used Q_UNREACHABLE()
there too, not Q_ASSERT(!"message").


More information about the Gcc-bugs mailing list