From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D0E613858C53; Wed, 25 Jan 2023 17:52:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0E613858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674669121; bh=c8oqdJGMMQSuG+8uLiD31wqY67UMK5uswSPY8GV78tc=; h=From:To:Subject:Date:From; b=C+OpDqx8/eLFJEaX8vI5ds368eX4AFs4yAD0VKiABRd96npCeCX1VUSFUYKfyycGG wK2NDnI+6fn3SLq7k5plj+3JkY1ULEseek93ltxDYt1YW/Figh6RVXEXvz1/ZQcwK5 Q9lCTjq5w4PowDO24DEUyhSYAVUo1PaKwKqpCq1A= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108546] New: [11/12/13 Regression] ICE in expand_expr_real_1, at expr.cc:10910 Date: Wed, 25 Jan 2023 17:52:01 +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=3D108546 Bug ID: 108546 Summary: [11/12/13 Regression] ICE in expand_expr_real_1, at expr.cc:10910 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: --- Started with r10, between 20191110 and 20191117 : $ cat z1.f90 module m use iso_c_binding contains subroutine s(x) type(c_ptr), optional :: x !$omp target is_device_ptr(x) if (c_associated(x)) stop !$omp end target end end $ cat z2.f90 # compiles, for reference only module m use iso_c_binding contains subroutine s(x) type(c_ptr) :: x !$omp target is_device_ptr(x) if (c_associated(x)) stop !$omp end target end end $ gfortran-13-20230122 -c z2.f90 -fopenmp $ gfortran-10-20191110 -c z1.f90 -fopenmp $ $ gfortran-13-20230122 -c z1.f90 -fopenmp during RTL pass: expand z1.f90:6:35: 6 | !$omp target is_device_ptr(x) | ^ internal compiler error: in expand_expr_real_1, at expr.cc:10910 0xa570bf expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.cc:10904 0xa5e66e expand_expr ../../gcc/expr.h:310 0xa5e66e expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier) ../../gcc/expr.cc:8582 0xa6a23a do_store_flag ../../gcc/expr.cc:13113 0xa6574e expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/expr.cc:10259 0x94fba2 expand_gimple_stmt_1 ../../gcc/cfgexpand.cc:3983 0x94fba2 expand_gimple_stmt ../../gcc/cfgexpand.cc:4044 0x9548d7 expand_gimple_basic_block ../../gcc/cfgexpand.cc:6096 0x95739e execute ../../gcc/cfgexpand.cc:6831=