https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72051 --- Comment #8 from wadud.miah at nag dot co.uk --- Hi kargl, I am getting the bug with gfortran 5.3.1. could you try to reproduce the bug with that version? Regards, Wadud.