From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A9833851C26; Sun, 20 Dec 2020 20:01:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A9833851C26 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/92065] [8/9/10/11 Regression] internal compiler error: in expand_expr_real_1 Date: Sun, 20 Dec 2020 20:01:22 +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: 9.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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 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: Sun, 20 Dec 2020 20:01:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92065 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #16 from Dominique d'Humieres --- If a set a breakpoint at expr.c:10270, after continuing several times I get * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D breakpoint = 1.2 frame #0: 0x00000001014af237 f951`expand_expr_real_1(tree_node*, rtx_de= f*, machine_mode, expand_modifier, rtx_def**, bool) at expr.c:10270:7 10267 been lowered by this point. */ 10268 if (exp) 10269 context =3D decl_function_context (exp); -> 10270 gcc_assert (!exp 10271 || SCOPE_FILE_SCOPE_P (context) 10272 || context =3D=3D current_function_decl 10273 || TREE_STATIC (exp) Target 0: (f951) stopped. (lldb) p tree_node* exp (lldb) p context (lldb) c Process 43535 resuming during RTL pass: expand pr92065.f90:23:31: 23 | integer function fun2(this, a) | ^ internal compiler error: in expand_expr_real_1, at expr.c:10270 With the modified program I get * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D breakpoint = 1.1 frame #0: 0x00000001009839b7 f951`expand_expr_real_1(exp=3D, target=3D, tmode=3DE_DImode, modifier=3DEXPAND_CONST_ADDRESS, alt_rtl=3D0x0000000000000000, inner_reference_p=3D) at expr.c:= 10270:7 10267 been lowered by this point. */ 10268 if (exp) 10269 context =3D decl_function_context (exp); -> 10270 gcc_assert (!exp 10271 || SCOPE_FILE_SCOPE_P (context) 10272 || context =3D=3D current_function_decl 10273 || TREE_STATIC (exp) Target 0: (f951) stopped. (lldb) c Process 43494 resuming Time variable usr sys = wall GGC phase setup : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( = 0%) 186k ( 8%) phase parsing : 0.01 ( 50%) 0.00 ( 0%) 0.01 ( = 0%) 1765k ( 79%) phase opt and generate : 0.01 ( 50%) 0.01 (100%) 39.53 (1= 00%) 284k ( 13%) callgraph construction : 0.00 ( 0%) 0.00 ( 0%) 24.16 ( = 61%) 12k ( 1%) parser (global) : 0.01 ( 50%) 0.00 ( 0%) 0.01 ( = 0%) 1765k ( 79%) expand : 0.01 ( 50%) 0.01 (100%) 15.35 ( = 39%) 19k ( 1%) initialize rtl : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( = 0%) 12k ( 1%) verify RTL sharing : 0.00 ( 0%) 0.00 ( 0%) 0.01 ( = 0%) 0 ( 0%) TOTAL : 0.02 0.01 39.55=20= =20=20=20=20=20=20 2239k=