[Bug c/71249] -Wswitch-unreachable false positive for a compound statement containing a used label
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 24 16:44:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71249
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue May 24 16:22:31 2016
New Revision: 236649
URL: https://gcc.gnu.org/viewcvs?rev=236649&root=gcc&view=rev
Log:
PR c/71249
* gimplify.c (gimplify_switch_expr): Look into the innermost lexical
scope.
* c-c++-common/Wswitch-unreachable-2.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/Wswitch-unreachable-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list