From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6471D3858D33; Wed, 25 Jan 2023 17:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6471D3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674669055; bh=5LIvdhLMMBRyzQmPM2ZpotK0oPCulLwaCUymxtC64Lo=; h=From:To:Subject:Date:From; b=sMCYGBrh+4vE9CjdW+Tqyb0pNOpSYGQRTTY7JOv1LC4s2W0H9SmKcQAKQWixftyHB Uv1jgiWi6hzZ9iI6rDCwHKN/eoUlT5F+TRtuefHyu2Cn8SF1IAjCyP/Ol9Il0xLgWr tJAIAj8KrGWU4MbgqUS6MYtEO6EaTxT8JcZ3JNJI= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108545] New: [13 Regression] ICE in install_var_field, at omp-low.cc:799 Date: Wed, 25 Jan 2023 17:50:55 +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=3D108545 Bug ID: 108545 Summary: [13 Regression] ICE in install_var_field, at omp-low.cc:799 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 between 20220911 and 20220918 : $ cat z1.f90 program p type t integer, pointer :: a(:) end type type(t), volatile :: x !$omp target enter data map(to: x%a) end $ cat z2.f90 program p type t integer, pointer :: a(:) end type type(t) :: x !$omp target enter data map(to: x%a) end $ gfortran-13-20230122 -c z2.f90 -fopenmp $ gfortran-12 -c z1.f90 -fopenmp $ $ gfortran-13-20230122 -c z1.f90 -fopenmp during GIMPLE pass: omplower z1.f90:6:39: 6 | !$omp target enter data map(to: x%a) | ^ internal compiler error: in install_var_field, at omp-low.cc:799 0xc6accb install_var_field ../../gcc/omp-low.cc:798 0xc6f882 scan_sharing_clauses ../../gcc/omp-low.cc:1678 0xc71c24 scan_omp_target ../../gcc/omp-low.cc:3111 0xc7282d scan_omp_1_stmt ../../gcc/omp-low.cc:4327 0xaf96a6 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:608 0xaf9880 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xaf9761 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:635 0xaf9880 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xaf9761 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:635 0xaf9880 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../gcc/gimple-walk.cc:51 0xc6852d scan_omp ../../gcc/omp-low.cc:4377 0xc7c73a execute_lower_omp ../../gcc/omp-low.cc:14691 0xc7c73a execute ../../gcc/omp-low.cc:14755=