re PR c++/77803 (Bogus implicit-fallthrough warning)
authorMarek Polacek <polacek@redhat.com>
Fri, 7 Oct 2016 11:45:50 +0000 (11:45 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 7 Oct 2016 11:45:50 +0000 (11:45 +0000)
commitd4bd46463c63cf0304a71563f1b68f271f3cb230
treec8e35580b4975ab62a613e94a7e9c260c987fb90
parent7a18d752e7061c81f83f97969ecf5cd46379d51e
re PR c++/77803 (Bogus implicit-fallthrough warning)

PR c++/77803
* gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().

* g++.dg/warn/Wimplicit-fallthrough-1.C: New test.

From-SVN: r240861
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wimplicit-fallthrough-1.C [new file with mode: 0644]