[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 17:18:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Oct 31 17:10:30 2016
New Revision: 241711

URL: https://gcc.gnu.org/viewcvs?rev=241711&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.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list