https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117763
Bug ID: 117763 Summary: [15.0 regression] segmentation fault through allocatable char arrays (?) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: juergen.reuter at desy dot de Target Milestone: --- Created attachment 59687 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59687&action=edit Reproducer, ca. 830 lines The following regression has been introduced very likely between Nov 11 and Nov 18, triggering our CI with the newest gcc/gfortran version. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x000000000040b243 in iso_varying_string::len_ (string=<error reading variable: Location address is not set.>) at main_ut.f90:55 55 if(ALLOCATED(string%chars)) then (gdb) bt #0 0x000000000040b243 in iso_varying_string::len_ (string=<error reading variable: Location address is not set.>) at main_ut.f90:55 #1 models::model_append_field_vars (model=...) at main_ut.f90:776 #2 0x000000000040c48c in main_ut () at main_ut.f90:797 The reproducer is attached, I'll try to reduce it even further.