[Bug fortran/99549] New: Segfault when scalar argument of elemental function is both derived type with allocatable component and a function result
here.is.a.gcc.bug at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 11 11:47:03 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99549
Bug ID: 99549
Summary: Segfault when scalar argument of elemental function is
both derived type with allocatable component and a
function result
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: here.is.a.gcc.bug at gmail dot com
Target Milestone: ---
Created attachment 50363
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50363&action=edit
A self-contained fortran program which causes the bug.
An elemental function is called where one argument is an array and another
argument is a scalar.
If the scalar argument is both:
- A derived type with an allocatable component
- The result of a function call (an rvalue in c++ speak)
Then a segfault happens.
More information about the Gcc-bugs
mailing list