[Bug middle-end/71606] [4.9/5/6/7 Regression] ICE on -O2 and above on x86_64-linux-gnu (internal compiler error: in get_expr_operands, at tree-ssa-operands.c:882)

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 8 07:52:00 GMT 2016


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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Jul  8 07:52:03 2016
New Revision: 238157

URL: https://gcc.gnu.org/viewcvs?rev=238157&root=gcc&view=rev
Log:
Do not consider COMPLEX_TYPE as fold_convertible_p

        PR middle-end/71606
        * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
        folding produces SAVE_EXPRs, thus return false for the type.
        * gcc.dg/torture/pr71606.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr71606.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list