From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 778503888824; Mon, 20 Feb 2023 10:02:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 778503888824 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676887376; bh=OZoZZwxUzLLcSyFOy5CAo3bsNs6G4U2jSY3nCZGWmPQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SY0K1unao6pwquvdXxLjU/CWENIo6Z3z6Gb4dqHIpNkJ+aSOzu4jhJqe1/uPKwZai lTuobcTuO1NJLBhVRFRGrKKqiyXbFqPC+3EDOthPqyNX8vrew6iqLsRxVjadKXQjOZ jhhVC+e88NT054kM9Rn1PEWaRYS7+39t+VOeUL1o= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108422] [13 Regression] ICE: base pointer cycle detected since r13-2661-gb57abd072dd319a7 Date: Mon, 20 Feb 2023 10:02:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-invalid-code, ice-on-valid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jules at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108422 --- Comment #4 from Tobias Burnus --- Created attachment 54491 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54491&action=3Dedit Testcase - compile with 'g++ -fopenmp' + run (In reply to Tobias Burnus from comment #3) > --- a/gcc/gimplify.cc > +++ b/gcc/gimplify.cc > @@ -9643 +9643 @@ omp_tsort_mapping_groups_1 (omp_mapping_group ***outlis= t, > - if (innerp && *innerp !=3D grp) > + if (innerp && *innerp !=3D grp && (*innerp)->mark !=3D PERMANENT) While COMPILING WORKS and the expected nested-target warning is printed, it FAILS at RUNTIME (on a system not configured for offloading) with a segfault. That's related to the warning: test.cc:20:13: warning: '__closure' is used uninitialized [-Wuninitialize= d] which appears at the location of the outer 'omp target (parallel)'. Note: without inner target construct (reverse offload), the program runs fi= ne. (Independent of the one-line patch.)=