From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 962A63857012; Tue, 11 Jul 2023 06:51:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 962A63857012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689058317; bh=LF55XIrGPI85FacFpwUX4Dnu/UBlohPdqEDp7fmdPGQ=; h=From:To:Subject:Date:From; b=neYjS8wMkyFq+vtHz0zNXocVre0ttVR1gAbkJEH/dr1l5a04dgF6k9aX9MPAo6NGG 8zsrSYuCaSlw9x7dNBZMmQnELsyOs0z8m9MZJc6wXQMkMmSwNFH2XWiNJBCxRsPe6r bK1W5NOyiU7R9Xmjr3qUM43wDoBSCKkraNczGBQo= From: "mscfd at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110623] New: Segfault if type-bound procedure function provided for an assumed rank class(*) argument Date: Tue, 11 Jul 2023 06:51:57 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mscfd at gmx dot net 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110623 Bug ID: 110623 Summary: Segfault if type-bound procedure function provided for an assumed rank class(*) argument Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mscfd at gmx dot net Target Milestone: --- Created attachment 55519 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55519&action=3Dedit testcase The attached code aborts with a segfault (or some undefined behaviour) in t= he line "call p(y%get())". For "call p(x%get())" with x declared as type(t) instead of class(t), everything seems fine. This is a variation to bug 100961. I have checked with 13.1 and 14.0 (curre= nt master). valgrind shows "conditional jump depends on uninitialised value" and "inval= id read" before it aborts.=