https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264
Bug ID: 117264
Summary: Segfault when using assignment for allocatable class
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: vterzi1996 at gmail dot com
Target Milestone: ---
Consider the following minimal example:
```
program p
type,abstract::t
end type
type,extends(t)::tt
end type
class(t),allocatable::o
o=f()
contains
function f()
class(t),allocatable::f
f=tt()
end
end
```
Running the executable compiled with gfortran 13.2.0 ends with a segfault,
although the code is correct.
Unfortunately, I cannot currently check if newer versions of gfortran have the
same problem.