re PR middle-end/71249 (-Wswitch-unreachable false positive for a compound statement...
authorMarek Polacek <polacek@redhat.com>
Tue, 24 May 2016 16:22:31 +0000 (16:22 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 24 May 2016 16:22:31 +0000 (16:22 +0000)
commitef2ec9d9a2c2d7380d2cf992db20cf8599fc0e3d
tree69010c074301aa33926d1fa5c77ab513c99595c4
parent7adb26f20259aadcd6e2df6ece474eca615af978
re PR middle-end/71249 (-Wswitch-unreachable false positive for a compound statement containing a used label)

PR c/71249
* gimplify.c (gimplify_switch_expr): Look into the innermost lexical
scope.

* c-c++-common/Wswitch-unreachable-2.c: New test.

From-SVN: r236649
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wswitch-unreachable-2.c [new file with mode: 0644]