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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It is undefined behavior after falling through without a return (to a non void
return type).

>Although the warning is a good pointer to this error, it was hard to track 
>down since the function "setFlags" was nested 3 levels down in the code.

You can use -fsanatizer=undefined to find this behavior at runtime.

Reply via email to