From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1DF733858430; Wed, 24 May 2023 00:20:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1DF733858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684887626; bh=L20UKmoNEPGckm6j0O51dUxTEAb2vAKjpp+RqiHvdyQ=; h=From:To:Subject:Date:From; b=ErksfPY8LN2329VUM2N1nK+K/HZFxOtLSDfczbgHv7z5SI8Qced3VW/RIvYWS1p04 FrnJS1Q+GmKratxXdC1jcm9UdF6MrN4atJKEGQkEH5+4fpamLCKwUnPLqnteOeCo70 sATJMwxZQbU8Kw1uC2Ry0vzJBCjgGESVRjQBHex4= From: "rimvydas.jas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109948] New: ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable() Date: Wed, 24 May 2023 00:20:25 +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.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rimvydas.jas at gmail dot com 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=3D109948 Bug ID: 109948 Summary: ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable() Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Bisected down to recent g:611be07e48956c8b7371eb580eef124990114fd3 $ cat test_associate.f90 subroutine foo(y, x) implicit none type tlap real, allocatable :: z(:) end type tlap type(tlap) :: y real :: x(:) associate(z=3D>y%z) if (getpid() =3D=3D 1) then where ( z < 0.0 ) x(:) =3D z(:) else where ( z < 0.0 ) x(:) =3D z(:) endif end associate end subroutine foo $ gfortran -O1 -c test_associate.f90 f951: internal compiler error: Segmentation fault 0xd362af crash_signal /data/g13/gcc/toplev.cc:314 0x2aaaaabfcecf ??? =20=20=20=20=20=20=20 /tmp/glibc-2.37/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7ca895 gfc_expression_rank(gfc_expr*) /data/g13/gcc/fortran/resolve.cc:5643 0x7caa44 gfc_op_rank_conformable(gfc_expr*, gfc_expr*) /data/g13/gcc/fortran/resolve.cc:5676 0x71228c eval_intrinsic /data/g13/gcc/fortran/arith.cc:1669 0x789edc match_level_4 /data/g13/gcc/fortran/matchexp.cc:646 0x789edc match_and_operand /data/g13/gcc/fortran/matchexp.cc:693 0x789f66 match_or_operand /data/g13/gcc/fortran/matchexp.cc:722 0x78a076 match_equiv_operand /data/g13/gcc/fortran/matchexp.cc:765 0x78a188 match_level_5gfc_op_rank_conformable( /data/g13/gcc/fortran/matchexp.cc:811 0x7892e4 gfc_match_expr(gfc_expr**) /data/g13/gcc/fortran/matchexp.cc:870 0x7bf2e0 match_actual_arg /data/g13/gcc/fortran/primary.cc:1688 0x7c0c88 gfc_match_actual_arglist(int, gfc_actual_arglist**, bool) /data/g13/gcc/fortran/primary.cc:1953 0x7c3455 gfc_match_rvalue(gfc_expr**) /data/g13/gcc/fortran/primary.cc:3695 0x7894fe match_primary /data/g13/gcc/fortran/matchexp.cc:157 0x7894fe match_level_1 /data/g13/gcc/fortran/matchexp.cc:211 0x7894fe match_mult_operand /data/g13/gcc/fortran/matchexp.cc:267 0x7897c8 match_add_operand /data/g13/gcc/fortran/matchexp.cc:356 0x789a9c match_level_2 /data/g13/gcc/fortran/matchexp.cc:480 0x789c56 match_level_3 /data/g13/gcc/fortran/matchexp.cc:551 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=