From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE3713857C5E; Wed, 2 Feb 2022 18:45:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE3713857C5E From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104351] ICE in gfc_generate_initializer, at fortran/expr.cc:5140 Date: Wed, 02 Feb 2022 18:45:59 +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: 12.0 X-Bugzilla-Keywords: ice-on-invalid-code 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: keywords 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: Wed, 02 Feb 2022 18:46:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104351 G. Steinmetz changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code --- Comment #1 from G. Steinmetz --- Without a result-name : $ cat z2.f90 program p implicit none type t end type type(t) :: f contains real function f() f =3D 0.0 end end $ gfortran-12-20220130 -c z2.f90 z2.f90:7:20: 7 | real function f() | 1 Error: Symbol 'f' at (1) already has basic type of DERIVED z2.f90:8:8: 8 | f =3D 0.0 | 1 Error: Symbol 'f' at (1) has already been host associated z2.f90:1:9: 1 | program p | 1 ...... 10 | end | 2 Error: Two main PROGRAMs at (1) and (2)=