https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65429
--- Comment #3 from drikosev at otenet dot gr --- With the patch one can avoid a segmentation fault but I don't know very well the internals of gfortran. So, I've no idea if and how one can obtain the length without array elements; some debugging didn't help at all.