https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #4 from Jürgen Reuter <juergen.reuter at desy dot de> --- Actually, we are using now allocate (obj(1:size (func ())) obj = func () as you are saying allocate (obj, source = func ()) had problems in gfortran 4.7.X. So the issue is not a problem for our code(s). But you are saying that the code triggering the ICE violates the Fortran standard?