------- Comment #9 from dominiq at lps dot ens dot fr 2010-04-16 17:38 ------- The run time error for
i = 0 a(i:1) = b(0:4) is At line 9 of file pr31538_db_2.f90 Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of array 'a' (2/5) for i = 0 a(i:1) = f(b) it is At line 14 of file pr31538_db.f90 Fortran runtime error: Array bound mismatch for dimension 1 of array 'f' In my opinion also the second case should produce an error similar to the first ones. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31538