[Bug c++/83924] ICE: Error reporting routines re-entered with -Wduplicated-branches
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 18 11:29:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83924
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-01-18
CC| |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This was fixed on trunk with
commit 301c8f8fce4125a095df4316cd75f5fe2fdf2c7f
Author: mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Jan 10 17:05:14 2018 +0000
PR c++/82541
* call.c (build_conditional_expr_1): Check complain before warning.
* pt.c (tsubst_copy_and_build) <case COND_EXPR>: Suppress
-Wduplicated-branches.
* g++.dg/warn/Wduplicated-branches4.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256441
138bc75d-0d04-0410-961f-82ee72b054a4
I think the call.c hunk is enough to fix it.
More information about the Gcc-bugs
mailing list