[Bug fortran/66910] allocatable character in derived type gives segfault
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 24 17:41:12 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66910
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
nagfor complains:
1
Runtime Error: 66910.f90, line 13: ALLOCATABLE ENVIRONMENT_TABLE is not
currently allocated
Program terminated by fatal error
Abgebrochen (Speicherabzug geschrieben)
And it is indeed correct. When entering the subroutine env_table_add,
the line
type(t_env_table), dimension(size(environment_table)) :: temp
is indeed incorrect - variables which are not allocated have
no valid size.
More information about the Gcc-bugs
mailing list