https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80850
--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to Paul Thomas from comment #14) > PS If I remove the STAT= from the allocate, the code runs just fine in DEV > mode. > > Paul I have not looke at this one. Have you tried with valgrind or sanitize tools to see if there are any further hints?