From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C7D23858D1E; Wed, 9 Nov 2022 17:55:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C7D23858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668016519; bh=zEMG8ugntbi75SnGsgBgyco2F4GbFHjIEctB0q/Dm30=; h=From:To:Subject:Date:From; b=WHA+Wp6HsGK3U/ICoqMuo7aKGQFOFqzyRu8H2i5D4zB0sxGHH/JtzSG5D8WaRgXtQ Ex5QoqsQvmwvkZtYPz79IQ2PEACqPwLm09D3BkCnveC0bbPkKDxhmT4Lw0fGn+5XtV VNty5PcIRLpjnY2RuNN77lA0J8f+tQOJU73FvTyQ= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107595] New: ICE in ix86_push_argument, at config/i386/i386.cc:4335 Date: Wed, 09 Nov 2022 17:55:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107595 Bug ID: 107595 Summary: ICE in ix86_push_argument, at config/i386/i386.cc:4335 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to at least r5 : (GNU Extension: Old-style initialization ) $ cat z1.f90 program p type t integer :: a integer, pointer :: b end type type(t) x /t(4, null())/ print *, x%b end $ cat z2.f90 program p type t integer :: a integer, pointer :: b end type type(t) :: x =3D t(4, null()) print *, x%b end $ gfortran-13-20221106 -c z2.f90 $ $ gfortran-13-20221106 -c z1.f90 z1.f90:8:3: 8 | end | ^ internal compiler error: Segmentation fault 0xf4697f crash_signal ../../gcc/toplev.cc:314 0x134e81d ix86_push_argument ../../gcc/config/i386/i386.cc:4335 0x9bcce3 expand_call(tree_node*, rtx_def*, int) ../../gcc/calls.cc:2688 0xb1cb29 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.cc:11868 0x13138ac expand_expr ../../gcc/expr.h:310 0x13138ac output_constant ../../gcc/varasm.cc:5250 0x1314d97 output_constant ../../gcc/varasm.cc:5158 0x1314d97 output_constructor_regular_field ../../gcc/varasm.cc:5545 0x1314d97 output_constructor ../../gcc/varasm.cc:5812 0x1316ba9 output_constant ../../gcc/varasm.cc:5158 0x1316ba9 assemble_variable_contents ../../gcc/varasm.cc:2231 0x13218dc assemble_variable(tree_node*, int, int, int) ../../gcc/varasm.cc:2410 0x1324f84 varpool_node::assemble_decl() ../../gcc/varpool.cc:596 0xa2b037 output_in_order ../../gcc/cgraphunit.cc:2151 0xa2b037 symbol_table::compile() ../../gcc/cgraphunit.cc:2355 0xa2e97f symbol_table::compile() ../../gcc/cgraphunit.cc:2546 0xa2e97f symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2543=