From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 26C693858401; Tue, 16 Nov 2021 18:37:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26C693858401 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103285] New: ICE in output_constructor_regular_field, at varasm.c:5514 Date: Tue, 16 Nov 2021 18:37:12 +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: 12.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 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: Tue, 16 Nov 2021 18:37:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103285 Bug ID: 103285 Summary: ICE in output_constructor_regular_field, at varasm.c:5514 Product: gcc Version: 12.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 r6, with option -fdec : (null() not allowed there) $ cat z1.f90 program p structure /s/ character*4 c /'abc'/ integer d(2) /2*null()/ integer e /3/ end structure record /s/ r if ( r.c /=3D 'abc' ) stop end $ gfortran-12-20211114 -c z1.f90 -fdec z1.f90:9:3: 9 | end | ^ internal compiler error: in output_constructor_regular_field, at varasm.c:5= 514 0x1014454 output_constructor_regular_field ../../gcc/varasm.c:5514 0x1014454 output_constructor ../../gcc/varasm.c:5826 0x101479f output_constant ../../gcc/varasm.c:5172 0x101479f assemble_variable_contents ../../gcc/varasm.c:2235 0x101c57d assemble_variable(tree_node*, int, int, int) ../../gcc/varasm.c:2414 0x101e87a varpool_node::assemble_decl() ../../gcc/varpool.c:595 0x95b61f output_in_order ../../gcc/cgraphunit.c:2135 0x95b61f symbol_table::compile() ../../gcc/cgraphunit.c:2353 0x95df3f symbol_table::compile() ../../gcc/cgraphunit.c:2540 0x95df3f symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2537=