[Bug c/89520] [7 Regression] ICE tree check: accessed operand 4 of call_expr with 3 operands in convert_to_integer_1, at convert.c:668

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 30 12:11:00 GMT 2019


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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 30 12:11:06 2019
New Revision: 275120

URL: https://gcc.gnu.org/viewcvs?rev=275120&root=gcc&view=rev
Log:
        Backported from mainline
        2019-02-28  Jakub Jelinek  <jakub@redhat.com>

        PR c/89520
        * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
        builtins if they don't have a single scalar floating point argument.
        Formatting fixes.

        * gcc.dg/pr89520-1.c: New test.
        * gcc.dg/pr89520-2.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr89520-1.c
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr89520-2.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/convert.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list