From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 315323858D38; Sat, 24 Sep 2022 21:35:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 315323858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664055312; bh=Z8fJ2xPnE39aENw05Fta348mhN1c1bHsJr6X1wM7Dn8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aBsWMqmVYCpchU2V7VIZzZLSdu4iOKPyX3ZA+XvgYZpAIql3aw9bjrh+zRhN/ngMw WMrB2Sr6WIvrou+HwKbz9QVRsjftWP28mK7eGnshVzr3F/y2p7nMcm3hcg6LJdXZVb cIXkavN5ff5Zo6q7LbzzRnqwuCkY6x3dwMXhd30M= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107028] [13 Regression][OpenACC] ICE in install_var_field, at omp-low.cc:797 Date: Sat, 24 Sep 2022 21:35:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, openacc 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: cc 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=3D107028 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jules at gcc dot gnu.org --- Comment #1 from Tobias Burnus --- The problem is that for 8 | #pragma acc data copyin(a, a.data) the function install_var_field is called twice, both times with: install_var_field (var=3D0x7ffff6fd8d80, by_ref=3Dtrue, mask=3D3, ctx=3D0= x30abd50) where var is var_decl 'a'. This then runs into the assert: 797 gcc_assert ((mask & 1) =3D=3D 0 798 || !splay_tree_lookup (ctx->field_map, key)); * * * BTW, in GCC 12 (and OG12), the omplower dump is: #pragma omp target oacc_data map(to:a [len: 4]) map(to:a.data [len:= 4]) * * * Unless I messed up with bisecting, the culprit is r13-2665-g23baa717c991d77f206a9358ce2c04960ccf9eea OpenMP/OpenACC struct sibling list gimplification extension and rework=