From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2DE43950432; Wed, 24 Feb 2021 15:18:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2DE43950432 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99226] [11 Regression] ICE in expand_expr_real_1, at expr.c:10279 Date: Wed, 24 Feb 2021 15:18:19 +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: 11.0 X-Bugzilla-Keywords: accepts-invalid, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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, 24 Feb 2021 15:18:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99226 --- Comment #5 from Tobias Burnus --- (In reply to Jakub Jelinek from comment #3) > So, either we diagnose ... in check_omp_nesting_restrictions. See comment 4. * * * Only for completeness, the ICE is itself is due to: '.omp_data_i' showing up in 'sub' and not only= in 'sub_._omp_fn.0'. This only occurs with -O1 (and higher) and -fdump-tree-omplower shows: void sub (integer(kind=3D4) & restrict n) { integer(kind=3D4) i; { D.3961 =3D .omp_data_i->D.3941; // <<< WRONG!!! Codewise, the '!optimize' occurs via gimplify.c's lookup_tmp_var if is_formal=3Dtrue =E2=80=93 as called by 'get_formal_tmp_var'.=