https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64209
Bug ID: 64209
Summary: [OOP] copy class(*) component from type with a
subroutine
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: polajnar.miha at gmail dot com
Created attachment 34209
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34209&action=edit
Source code describing the bug
The attached source code produces segmentation fault :
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
Backtrace for this error:
#0 0x7FA69CC6F4D0
#1 0x7FA69CC6E6B0
#2 0x7FA69C17E54F
#3 0x4011FC in __copy_INTEGER_4_.3528 at gfort_bug.f90:?
#4 0x4010B0 in __m_MOD_copy
#5 0x401411 in MAIN__ at gfort_bug.f90:?
Segmentation fault
with
gcc version 5.0.0 20141202 (experimental) [trunk revision 218267] (SUSE Linux).
The code works fine with ifort.