[Bug c++/84938] [7/8 Regression] internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand())

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 5 00:09:00 GMT 2018


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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr  5 00:09:10 2018
New Revision: 259108

URL: https://gcc.gnu.org/viewcvs?rev=259108&root=gcc&view=rev
Log:
        PR c++/84938 - ICE with division by ~-1.

        * call.c (set_up_extended_ref_temp): Call cp_fully_fold.

Added:
    trunk/gcc/testsuite/g++.dg/expr/div-by-zero1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c


More information about the Gcc-bugs mailing list