From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E26A93858D28; Tue, 11 Oct 2022 16:54:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E26A93858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665507277; bh=pqPXlHkp/f8iqdqITJ8SsQ4vECehkFpb9T505qIM+kY=; h=From:To:Subject:Date:From; b=ILAgs+ih12oZsC8LRETNW5XOhCPYpAiKcw7ssKcTpHPa/tpS8cdtvyksJjPibLSzp nW6MSJ/qLF9Ic0c2OgJXuHalV6FyFc/Ahv5laaR8oDtRcZOLEkom79+gqYf4TqOE6N 3JE4ZZIXBKYbpDUo7r09SuvMiZCm/KyBXzgjKb+g= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107215] New: ICE in gfc_real2real and gfc_complex2complex Date: Tue, 11 Oct 2022 16:54:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107215 Bug ID: 107215 Summary: ICE in gfc_real2real and gfc_complex2complex Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Additional examples affect versions down to at least r5 : $ cat z1.f90 program p double precision, parameter :: z =3D 1.0d0 real :: y(1) complex :: x(1) x =3D [real :: -'1'] * z y =3D z * [real :: -'1'] x =3D [real :: -(.true.)] * z y =3D z * [real :: -(.true.)] end $ cat z2.f90 program p double precision, parameter :: z =3D 1.0d0 real :: y(1) complex :: x(1) x =3D [complex :: -'1'] * z y =3D z * [complex :: -'1'] x =3D [complex :: -(.true.)] * z y =3D z * [complex :: -(.true.)] end $ gfortran-13-20221009 -c z1.f90 f951: internal compiler error: Segmentation fault 0xd93caf crash_signal ../../gcc/toplev.cc:314 0x77ecb7 gfc_real2real(gfc_expr*, int) ../../gcc/fortran/arith.cc:2201 0x8526c2 gfc_convert_constant(gfc_expr*, bt, int) ../../gcc/fortran/simplify.cc:8762 #... $ gfortran-13-20221009 -c z2.f90 f951: internal compiler error: Segmentation fault 0xd93caf crash_signal ../../gcc/toplev.cc:314 0x77f421 gfc_complex2complex(gfc_expr*, int) ../../gcc/fortran/arith.cc:2444 0x8526c2 gfc_convert_constant(gfc_expr*, bt, int) ../../gcc/fortran/simplify.cc:8762 0x7c9a3b do_simplify ../../gcc/fortran/intrinsic.cc:4658 0x7d5501 gfc_convert_type_warn(gfc_expr*, gfc_typespec*, int, int, bool) ../../gcc/fortran/intrinsic.cc:5384 0x7b7958 gfc_type_convert_binary(gfc_expr*, int) ../../gcc/fortran/expr.cc:985 0x77c317 eval_intrinsic ../../gcc/fortran/arith.cc:1606 0x7eed8c match_add_operand ../../gcc/fortran/matchexp.cc:392 0x7eef3c match_level_2 ../../gcc/fortran/matchexp.cc:480 0x7ef092 match_level_3 ../../gcc/fortran/matchexp.cc:551 0x7ef184 match_level_4 ../../gcc/fortran/matchexp.cc:599 0x7ef184 match_and_operand ../../gcc/fortran/matchexp.cc:693 0x7ef372 match_or_operand ../../gcc/fortran/matchexp.cc:722 0x7ef442 match_equiv_operand ../../gcc/fortran/matchexp.cc:765 0x7ef514 match_level_5 ../../gcc/fortran/matchexp.cc:811 0x7ee8e1 gfc_match_expr(gfc_expr**) ../../gcc/fortran/matchexp.cc:870 0x7e5ec0 gfc_match(char const*, ...) ../../gcc/fortran/match.cc:1131 0x7e7c89 gfc_match_assignment() ../../gcc/fortran/match.cc:1330 0x812e40 match_word ../../gcc/fortran/parse.cc:67 0x812e40 decode_statement ../../gcc/fortran/parse.cc:363=