Commit 9782e1ec by Jakub Jelinek

re PR c++/77886 (-Wimplicit-fallthrough: breaks duff's device (in function templates))

	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
parent c5fed5c6
...@@ -45,13 +45,6 @@ ...@@ -45,13 +45,6 @@
* config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define. * 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> 2016-09-11 Le-Chun Wu <lcwu@google.com>
Mark Wielaard <mjw@redhat.com> Mark Wielaard <mjw@redhat.com>
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
expression and break;. expression and break;.
PR c++/77886 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> 2016-09-11 Le-Chun Wu <lcwu@google.com>
Mark Wielaard <mjw@redhat.com> Mark Wielaard <mjw@redhat.com>
......
...@@ -29,6 +29,11 @@ ...@@ -29,6 +29,11 @@
PR tree-optimization/77860 PR tree-optimization/77860
* gcc.dg/pr77860.c: New test. * 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> 2016-10-31 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/lto/pr60449_0.c: Skip for avr. * gcc.dg/lto/pr60449_0.c: Skip for avr.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment