This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]