https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115639
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Marek Polacek from comment #2) > The second time around, we're not finding the call in constexpr_call_table. We can't reuse the result due to the different value of mce; the first time we have mce_unknown, the second time mce_true. The first time is for possible warnings in cp_build_binary_op; perhaps we should lower the max constexpr iteration count for such speculative folding? Relatedly, cp_b_b_o should probably use fold_for_warn instead of cp_fully_fold.