From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAF453858C41; Wed, 17 Apr 2024 14:42:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAF453858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713364970; bh=NwmtXlGP4Jm25lDzwT63hQIiEyNqiPMNyfdxNjfnXYA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q1F6Dphv2JlGKdsDyiGihA5LDmJifH6jzDRVeG9PRGHfgC0bRlE6lih5ZwZ+n3Uao Mrn4Qslt4Dj5Evl9UQaRml3WS5RAqPRoYh0GtsUHzZtsrHC/R5OhOrJKjqZTbnG5pn 4zv1lLsC6zTitx4ga/G5khG65FAJLqhuCqOOnGP8= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/114509] [11/12/13/14 Regression] an infinite loop or ICE with openmp after errors in some cases Date: Wed, 17 Apr 2024 14:42:49 +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.2.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D114509 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Reduced testcase: void bar (void *); void foo (int x) { struct S { int a[x]; int b; } s; #pragma omp parallel for for (int i =3D 0; i < 10; i++) bar (&s); } We don't really support variable length structures/unions in OpenMP/OpenACC lowering/expansion, and I don't see why we should spend time on that, varia= ble length structures/unions just shouldn't be used in C (they are already inva= lid in C++ and not present in Fortran either), I think that extension exists ju= st because Ada needs to support that. Though Ada on the other side doesn't support OpenMP/OpenACC. So, I think we should just sorry if something attempts to privatize/map variable length structure/union; making it shared should be fine.=