[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-24 Thread vterzi1996 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #10 from Vladimir Terzi --- (In reply to anlauf from comment #9) > After some search, I found a gfortran 13.3.0 (openSUSE 15.5, r13-8781), > that fails also for > > program p > type,abstract::t > end type t > type,extends(t)::

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-23 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 anlauf at gcc dot gnu.org changed: What|Removed |Added Known to fail||13.3.0 --- Comment #9 from a

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-23 Thread vterzi1996 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #8 from Vladimir Terzi --- Created attachment 59414 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59414&action=edit Disassembled executable Since the error seems to be system-dependent, I disassembled the failing executable w

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread vterzi1996 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #7 from Vladimir Terzi --- (In reply to anlauf from comment #5) > Please show the exact failing code. I noticed that my comment is somewhat misleading, so I will clarify. (In reply to Vladimir Terzi from comment #4) > That's strang

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #6 from kargls at comcast dot net --- Agree with Harald, we need to see the actual code and error. program p type, abstract :: t integer :: i = 0 end type type, extends(t) :: tt integer :: j = 0 end type

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #5 from anlauf at gcc dot gnu.org --- (In reply to Vladimir Terzi from comment #4) > (In reply to kargls from comment #3) > > Works for me with 13.2.0, 14.2.0, and top of tree on x86_64-*-freebsd. > > > > You can also do the allocat

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread vterzi1996 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #4 from Vladimir Terzi --- (In reply to kargls from comment #3) > Works for me with 13.2.0, 14.2.0, and top of tree on x86_64-*-freebsd. > > You can also do the allocation explicitly instead of allocation > on assignment. > >

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread kargls at comcast dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 kargls at comcast dot net changed: What|Removed |Added CC||kargls at comcast dot net --

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread vterzi1996 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 --- Comment #2 from Vladimir Terzi --- (In reply to anlauf from comment #1) > Confirmed up to current trunk. > > As a workaround, you may try the result clause on function f, e.g.: > > function f() result(r) > class(t), allocatable :: r

[Bug fortran/117264] Segfault when using assignment for allocatable class

2024-10-22 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117264 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||wrong-code Statu