https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66910
Bug ID: 66910 Summary: allocatable character in derived type gives segfault Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: pascal22p at parois dot net Target Milestone: --- Created attachment 36004 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36004&action=edit test case Hi, This bug report is following up with a discussion on comp.lang.fortran. https://groups.google.com/forum/#!topic/comp.lang.fortran/H9o5iJvsM2k The test case attached gives a segfault: Program received signal SIGSEGV, Segmentation fault. 0x000000000040213b in g_mod::env_table_add (key='tr2', valeur='rr', _key=3, _valeur=2) at f.f90:26 26 environment_table(size(temp)+1)%key=key It was compiled with GNU Fortran (GCC) version 5.1.0 (x86_64-unknown-linux-gnu): gfortran51 -fcheck=all -g -gdwarf-3 f.f90 -o truc The program is a very basic dictionary and fail on the insertion of a second value. A workaround using source allocation can be used. It looks similar to: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65841 Regards, Pascal