[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886 --- Comment #13 from Jakub Jelinek --- Author: jakub Date: Mon Oct 31 17:10:30 2016 New Revision: 241711 URL: https://gcc.gnu.org/viewcvs?rev=241711=gcc=rev Log: PR c++/77886 * pt.c (tsubst_expr) Copy over FALLTHROUGH_LABEL_P flag to the new LABEL_DECL. (tsubst_expr) : Likewise. * g++.dg/warn/Wimplicit-fallthrough-2.C: New test. Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/testsuite/ChangeLog
[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #12 from Jakub Jelinek --- Fixed.
[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 --- Author: jakub Date: Mon Oct 31 13:39:49 2016 New Revision: 241700 URL: https://gcc.gnu.org/viewcvs?rev=241700=gcc=rev Log: PR c++/77886 * pt.c (tsubst_expr) Copy over FALLTHROUGH_LABEL_P flag to the new LABEL_DECL. (tsubst_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
[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886 --- Comment #10 from Marc Mutz --- I can confirm patch fixes my Qt build, ie. not just bug.cpp. Thanks!
[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2016-10-07 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #9 from Jakub Jelinek --- Created attachment 39771 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39771=edit gcc7-pr77886.patch Untested fix.
[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886 --- Comment #8 from Marc Mutz --- #c3 is also in a template, indeed.
[Bug c++/77886] -Wimplicit-fallthrough: breaks duff's device (in function templates)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77886 --- Comment #7 from Marc Mutz --- Version: $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/d/gcc/trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/d/gcc/trunk --enable-checking=release --enable-languges=c,c++,fortran,lto,objc,obj-c++ Thread model: posix gcc version 7.0.0 20161005 (experimental) (GCC) Specifically: $ git log -10 --online c7b01e7 PR sanitizer/77823 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0 is not integral. d20 Fix pr69941.c test failure for avr ea55eab 2016-10-05 Jerry DeLisle9ce1157 PR bootstrap/77819 - undefined reference to gnu_libc_printf_pointer_format with uClibc 5c176eb * c-common.c (c_common_reswords): Update comment for C++11. 4ef2832 [fold-const] Fix native_encode_real for HFmode constants 59deb1a 70564 fix newly-added tests for not_fn c375ef0 libcpp/ChangeLog: 77a1a89 Move all existing strchr and strrchr folding from builtins.c to gimple-fold.c. ad69f5a PR 70101 fix allocator-extended ctors for std::priority_queue