public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/110623] New: Segfault if type-bound procedure function provided for an assumed rank class(*) argument
@ 2023-07-11 6:51 mscfd at gmx dot net
0 siblings, 0 replies; only message in thread
From: mscfd at gmx dot net @ 2023-07-11 6:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110623
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=55519&action=edit
testcase
The attached code aborts with a segfault (or some undefined behaviour) in the
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 (current
master).
valgrind shows "conditional jump depends on uninitialised value" and "invalid
read" before it aborts.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-11 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-11 6:51 [Bug fortran/110623] New: Segfault if type-bound procedure function provided for an assumed rank class(*) argument mscfd at gmx dot net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).