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 e3347c00cee570a50b20d91f2506a7fad3ab2dfb..007389bd37e287059156e981f149a8d5b4f722a3 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 b657f62f402489f9432c8dae984402187df35a6a..8651479909cf5ec830a3b25fa915a96449dc5850 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 0d1a01395a83e7a775dbef77f5052209bf8082e8..25bf8932eee0f6383f47536d4970ec4a8e60d988 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.