From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8422A383E80B; Wed, 26 Jan 2022 17:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8422A383E80B From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104131] ICE in gfc_conv_array_ref, at fortran/trans-array.c:3810 Date: Wed, 26 Jan 2022 17:25:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2022 17:25:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104131 --- Comment #2 from G. Steinmetz --- And with a coarray : $ cat zz1.f90 program p use iso_c_binding, only: c_intptr_t integer, parameter :: omp_event_handle_kind =3D c_intptr_t integer (kind=3Domp_event_handle_kind) :: x[*] !$omp task detach (x) !$omp end task end $ cat zz2.f90 program p use iso_c_binding, only: c_intptr_t integer, parameter :: omp_event_handle_kind =3D c_intptr_t integer (kind=3Domp_event_handle_kind) :: x[*] !$omp parallel master default (none) !$omp task detach (x) !$omp end task !$omp end parallel master end $ gfortran-12-20220123 -c zz1.f90 -fopenmp -fcoarray=3Dsingle zz1.f90:5:24: 5 | !$omp task detach (x) | ^ internal compiler error: Segmentation fault 0xcc430f crash_signal ../../gcc/toplev.cc:322 0xa229da omp_add_variable ../../gcc/gimplify.cc:7200 0xa32f20 gimplify_scan_omp_clauses ../../gcc/gimplify.cc:10305 0xa267ce gimplify_omp_task ../../gcc/gimplify.cc:12122 0xa267ce gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:15454 0xa29b18 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7035 0xa2a071 gimplify_bind_expr ../../gcc/gimplify.cc:1427 0xa2745a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:15161 0xa29b18 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7035 0xa2ab9b gimplify_body(tree_node*, bool) ../../gcc/gimplify.cc:16206 0xa2afef gimplify_function_tree(tree_node*) ../../gcc/gimplify.cc:16360 0x8b26f7 cgraph_node::analyze() ../../gcc/cgraphunit.cc:675 0x8b50a7 analyze_functions ../../gcc/cgraphunit.cc:1240 0x8b5a6d symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2500=