http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59398
--- Comment #4 from Harald Anlauf <anlauf at gmx dot de> --- I also tested the modified case with NAG 5.3.2(951). It agrees with gfortran. I now wonder whether there is something special about allocatable function results.