[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 31 14:00:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Oct 31 13:39:49 2016
New Revision: 241700
URL: https://gcc.gnu.org/viewcvs?rev=241700&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wimplicit-fallthrough-2.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list