re PR c++/77886 (-Wimplicit-fallthrough: breaks duff's device (in function templates))
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2016 17:10:30 +0000 (18:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2016 17:10:30 +0000 (18:10 +0100)
PR c++/77886
* pt.c (tsubst_expr) <case CASE_LABEL_EXPR> Copy over
FALLTHROUGH_LABEL_P flag to the new LABEL_DECL.
(tsubst_expr) <case LABEL_EXPR>: Likewise.

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

From-SVN: r241711

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog

index e3347c0..007389b 100644 (file)
 
        * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
 
-2016-10-31  Jakub Jelinek  <jakub@redhat.com>
-
-       PR c++/77886
-       * pt.c (tsubst_expr) <case CASE_LABEL_EXPR> Copy over
-       FALLTHROUGH_LABEL_P flag to the new LABEL_DECL.
-       (tsubst_expr) <case LABEL_EXPR>: Likewise.
-
 2016-09-11  Le-Chun Wu  <lcwu@google.com>
            Mark Wielaard  <mjw@redhat.com>
 
index b657f62..8651479 100644 (file)
@@ -6,7 +6,9 @@
        expression and break;.
 
        PR c++/77886
-       * g++.dg/warn/Wimplicit-fallthrough-2.C: New test.
+       * pt.c (tsubst_expr) <case CASE_LABEL_EXPR> Copy over
+       FALLTHROUGH_LABEL_P flag to the new LABEL_DECL.
+       (tsubst_expr) <case LABEL_EXPR>: Likewise.
 
 2016-09-11  Le-Chun Wu  <lcwu@google.com>
            Mark Wielaard  <mjw@redhat.com>
index 0d1a013..25bf893 100644 (file)
        PR tree-optimization/77860
        * gcc.dg/pr77860.c: New test.
 
+2016-10-31  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/77886
+       * g++.dg/warn/Wimplicit-fallthrough-2.C: New test.
+
 2016-10-31  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
 
        * gcc.dg/lto/pr60449_0.c: Skip for avr.