This test failed with make check-c++1z because in C++1z we don't get the expected message.
Bootstrapped/regtested on x86_64-linux, applying to trunk. 2016-09-29 Marek Polacek <pola...@redhat.com> * g++.dg/cpp0x/fallthrough2.C: Only expect the warning in C++11 and C++14. diff --git gcc/testsuite/g++.dg/cpp0x/fallthrough2.C gcc/testsuite/g++.dg/cpp0x/fallthrough2.C index b6964e1..71c4a4f 100644 --- gcc/testsuite/g++.dg/cpp0x/fallthrough2.C +++ gcc/testsuite/g++.dg/cpp0x/fallthrough2.C @@ -11,7 +11,7 @@ f (int i) { case 1: bar (1); - [[fallthrough]]; // { dg-warning ".fallthrough. is a C\\+\\+17 feature" } + [[fallthrough]]; // { dg-warning ".fallthrough. is a C\\+\\+17 feature" "" { target { ! c++1z } } } case 3: bar (1); [[gnu::fallthrough, gnu::fallthrough]]; // { dg-warning ".fallthrough. attribute specified multiple times" } Marek