The following program compiles with g95 and f95 in less than a second. gfortran needs more than several minutes (until I lost patience). I think gfortran does not enter an endless loop but tries to solve the h1 assignment explicitly. (At least is seems to do this with a much stripped down version.) Full example: http://home.comcast.net/~kmbtib/fft64t.i90 http://home.comcast.net/~kmbtib/fft64t.f90 The slow-down line is: h1 = (/(sum((/(exp(-2*pi*(0,1)*mod(k*L,N)/N)*h2(L),L=0,N-1)/)),k=0,N-1)/)
I bet this is a duplicate of another bug like say PR 20923.
*** This bug has been marked as a duplicate of 20923 ***
Actually a duplicate of PR 32489 (or rather the other way round). Same test case, same reporter; this one is 3 months older - but the other PR has a patch ...