From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A14A3858D35; Fri, 10 Dec 2021 09:59:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A14A3858D35 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103643] New: [12 Regression][OpenMP] ICE in create_tmp_var, at gimple-expr.c:482 - via gimplify_omp_affinity Date: Fri, 10 Dec 2021 09:59:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc 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 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: Fri, 10 Dec 2021 09:59:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103643 Bug ID: 103643 Summary: [12 Regression][OpenMP] ICE in create_tmp_var, at gimple-expr.c:482 - via gimplify_omp_affinity Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Did compile in November but now ICEs. Long testcase: https://github.com/SOLLVE/sollve_vv/blob/master/tests/5.0/task/test_task_af= finity_device.F90 ./tests/5.0/task/test_task_affinity_device.F90:47:51: 47 | !$omp task depend(out: B) shared(B) affinity(A) | ^ internal compiler error: in create_tmp_var, at gimple-expr.c:482 0x6dd612 create_tmp_var(tree_node*, char const*) ../../repos/gcc/gcc/gimple-expr.c:482 0xcfada0 create_tmp_from_val ../../repos/gcc/gcc/gimplify.c:570 0xcfada0 lookup_tmp_var ../../repos/gcc/gcc/gimplify.c:588 0xcfada0 internal_get_tmp_var ../../repos/gcc/gcc/gimplify.c:641 0xcf4597 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../repos/gcc/gcc/gimplify.c:15954 0xd0a714 gimplify_omp_affinity ../../repos/gcc/gcc/gimplify.c:8125 0xd0a714 gimplify_scan_omp_clauses ../../repos/gcc/gcc/gimplify.c:10184 Reduced testcase: PROGRAM test_task_affinity INTEGER,ALLOCATABLE:: A(:), B(:) !$omp target map(from: B) !$omp task depend(out: B) shared(B) affinity(A) !$omp end task !$omp end target END PROGRAM test_task_affinity=