https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95091
Bug ID: 95091
Summary: ICE in gfc_hash_value, at fortran/class.c:538
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
A more complex example, switches between 44 (ok) and 45 (ICE) :
(backtrace varies with release and name length)
$ cat z1_44.f90
module m2345678901234567890123456789012345678901234
type t2345678901234567890123456789012345678901234
end type
interface
module subroutine s2345678901234567890123456789012345678901234 &
(x2345678901234567890123456789012345678901234)
end
end interface
end
submodule(m2345678901234567890123456789012345678901234) &
n2345678901234567890123456789012345678901234
type, extends(t2345678901234567890123456789012345678901234) :: &
u2345678901234567890123456789012345678901234
end type
end
$ cat z1_45.f90
module m23456789012345678901234567890123456789012345
type t23456789012345678901234567890123456789012345
end type
interface
module subroutine s23456789012345678901234567890123456789012345 &
(x23456789012345678901234567890123456789012345)
end
end interface
end
submodule(m23456789012345678901234567890123456789012345) &
n23456789012345678901234567890123456789012345
type, extends(t23456789012345678901234567890123456789012345) :: &
u23456789012345678901234567890123456789012345
end type
end
$ cat z1_63.f90
module m23456789012345678901234567890123456789012345678901234567890123
type t23456789012345678901234567890123456789012345678901234567890123
end type
interface
module subroutine
s23456789012345678901234567890123456789012345678901234567890123 &
(x23456789012345678901234567890123456789012345678901234567890123)
end
end interface
end
submodule(m23456789012345678901234567890123456789012345678901234567890123) &
n23456789012345678901234567890123456789012345678901234567890123
type,
extends(t23456789012345678901234567890123456789012345678901234567890123) :: &
u23456789012345678901234567890123456789012345678901234567890123
end type
end
$ gfortran-11-20200510 -c z1_44.f90
$
$ gfortran-11-20200510 -c z1_45.f90
f951: internal compiler error: Segmentation fault
0xbb93cf crash_signal
../../gcc/toplev.c:328
0x64003a gfc_match_function_decl()
../../gcc/fortran/decl.c:7355
gfortran: internal compiler error: Segmentation fault signal terminated program
f951
$ gfortran-11-20200510 -c z1_63.f90
f951: internal compiler error: Segmentation fault
0xbb93cf crash_signal
../../gcc/toplev.c:328
0x62c64c gfc_hash_value(gfc_symbol*)
../../gcc/fortran/class.c:538
gfortran: internal compiler error: Segmentation fault signal terminated program
f951
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.