From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 116F5393B063; Fri, 17 Jul 2020 17:05:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 116F5393B063 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595005508; bh=FN96dXymgak8S4watYNy0nLZpRGEuman0VTZwvMY8o4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ngdQVU1ZIQM5xj/LlwqVkf+PSEzRU8mVtphnPYYbifaGIRWIzZrckrs9tmkYCAkh1 V71hqYXajJlCgIlju85/kYyjxX3cpDWpex7XTEaJrI4HcTTNRZmSc9uaJ1UXvcRZm1 rLviLiHtcbT63CQLrl8pKc3926R4dWyAsuH1j+80= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/93553] ICE in scan_omp_1_op, at omp-low.c:3485 Date: Fri, 17 Jul 2020 17:05:07 +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: 10.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: NEW 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: 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: Fri, 17 Jul 2020 17:05:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93553 --- Comment #7 from Tobias Burnus --- The variable ("D.3940") is produced via the following route. Contrary to variables processed in gimplify.c, which use /* When within an OMP context, notice uses of variables. */ if (gimplify_omp_ctxp && omp_notice_variable (gimplify_omp_ctxp, decl, tr= ue)) ... This variable does not get recorded =E2=80=93 and, hence, it fails as shown= in the previous comment 6. #0 create_tmp_var_raw (type=3Dtype@entry=3D0x7ffff78c5d20, prefix=3Dprefix@entry=3D0x0) at ../../repos/gcc/gcc/gimple-expr.c:449 #1 0x0000000000f274f6 in create_tmp_var_for (info=3Dinfo@entry=3D0x266f870, type=3D0x7ffff78c5d20, prefix=3Dprefix@entry=3D0x0) at ../../repos/gcc/gcc/tree-nested.c:160 #2 0x0000000000f2828d in init_tmp_var (info=3Dinfo@entry=3D0x266f870, exp=3Dexp@entry=3D0x7ffff78d45a0, gsi=3Dgsi@entry=3D0x7fffffffd540) at ../../repos/gcc/gcc/tree-nested.c:462 #3 0x0000000000f2f1d4 in convert_nonlocal_reference_op (tp=3Dtp@entry=3D0x7ffff78cc608, walk_subtrees=3Dwalk_subtrees@entry=3D0x7f= ffffffd134,=20 data=3Ddata@entry=3D0x7fffffffd540) at ../../repos/gcc/gcc/tree-nested.= c:1081 #4 0x000000000114e262 in walk_tree_1 (tp=3D0x7ffff78cc608, func=3Dfunc@entry=3D0xf2ee90 ,=20 data=3Ddata@entry=3D0x7fffffffd540, pset=3Dpset@entry=3D0x0, lh=3Dlh@en= try=3D0x0) at ../../repos/gcc/gcc/tree.c:11960 #5 0x000000000114f942 in walk_tree_1 (tp=3Dtp@entry=3D0x7ffff7700478, func=3Dfunc@entry=3D0xf2ee90 ,=20 data=3Ddata@entry=3D0x7fffffffd540, pset=3Dpset@entry=3D0x0, lh=3Dlh@en= try=3D0x0) at ../../repos/gcc/gcc/tree.c:12296 #6 0x0000000000f2f4fd in convert_nonlocal_reference_op (tp=3D0x7ffff770047= 8, tp@entry=3D0x7ffff78cd130, walk_subtrees=3Dwalk_subtrees@entry=3D0x7fffffff= d354,=20 data=3Ddata@entry=3D0x7fffffffd540) at ../../repos/gcc/gcc/tree-nested.= c:1156 #7 0x000000000114e262 in walk_tree_1 (tp=3D0x7ffff78cd130, func=3Dfunc@entry=3D0xf2ee90 ,=20 data=3Ddata@entry=3D0x7fffffffd540, pset=3Dpset@entry=3D0x0, lh=3Dlh@en= try=3D0x0) at ../../repos/gcc/gcc/tree.c:11960 #8 0x0000000000b7981a in walk_gimple_op (stmt=3D0x7ffff78cd0f0, callback_op=3D0xf2ee90 , wi=3D0x7fffffffd540) at ../../repos/gcc/gcc/gimple.h:2492 #9 0x0000000000b79a6d in walk_gimple_stmt (gsi=3D0x7fffffffd460,=20 callback_stmt=3D0xf30aa0 ,=20 callback_op=3D0xf2ee90 , wi=3D0x7fffffffd540) at ../../repos/gcc/gcc/gimple-walk.c:596 #10 0x0000000000b79c01 in walk_gimple_seq_mod (pseq=3D,=20 callback_stmt=3D0xf30aa0 ,=20 callback_op=3D0xf2ee90 , wi=3D0x7fffffffd540) at ../../repos/gcc/gcc/gimple-walk.c:51 #11 0x0000000000b79af2 in walk_gimple_stmt (gsi=3D0x7fffffffd4e0,=20 callback_stmt=3D0xf30aa0 ,=20 callback_op=3D0xf2ee90 , wi=3D0x7fffffffd540) at ../../repos/gcc/gcc/gimple.h:4382 #12 0x0000000000b79c01 in walk_gimple_seq_mod (pseq=3Dpseq@entry=3D0x7ffff7= 8cb028,=20 callback_stmt=3Dcallback_stmt@entry=3D0xf30aa0 ,=20 callback_op=3Dcallback_op@entry=3D0xf2ee90 , wi=3Dwi@entry=3D0x7fffffffd540) at ../../repos/gcc/gcc/gimple-walk.c:51 #13 0x0000000000f28868 in walk_body (callback_stmt=3Dcallback_stmt@entry=3D= 0xf30aa0 ,=20 callback_op=3Dcallback_op@entry=3D0xf2ee90 , info=3Dinfo@entry=3D0x= 266f870, pseq=3D0x7ffff78cb028) at ../../repos/gcc/gcc/tree-nested.c:712 #14 0x0000000000f30490 in convert_nonlocal_omp_clauses (pclauses=3D0x7ffff76fe6a8, wi=3Dwi@entry=3D0x7fffffffd7d0) at ../../repos/gcc/gcc/tree-nested.c:1424=