From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC35B38582B1; Thu, 23 Jun 2022 13:31:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC35B38582B1 From: "philippe.wautelet at aero dot obs-mip.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106065] New: Crash when reading extended derived type array in namelist Date: Thu, 23 Jun 2022 13:31:34 +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.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: philippe.wautelet at aero dot obs-mip.fr 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 attachments.created 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: Thu, 23 Jun 2022 13:31:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106065 Bug ID: 106065 Summary: Crash when reading extended derived type array in namelist Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: philippe.wautelet at aero dot obs-mip.fr Target Milestone: --- Created attachment 53195 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53195&action=3Dedit Reproducer I get a crash when using an array of extended derived types. If I define an other type containing the same information but not extended,= the problem disappears. See the attached source: > gfortran type_extends_nml.f90 ;./a.out &NAM_BAL_NE DATE_TIME_NE(1)%NYEAR=3D 2022, DATE_TIME_NE(1)%NMONTH=3D 0, DATE_TIME_NE(1)%NDAY=3D 0, DATE_TIME_NE(1)%XTIME=3D 0.00000000 , DATE_TIME_NE(2)%NYEAR=3D 0, DATE_TIME_NE(2)%NMONTH=3D 0, DATE_TIME_NE(2)%NDAY=3D 0, DATE_TIME_NE(2)%XTIME=3D 1.23399997 , / At line 36 of file type_extends_nml.f90 Fortran runtime error: Cannot match namelist object name 2022 I tested with several versions of gfortran from version 5.5.0 to 12.1.0. All failed.=