------- Comment #1 from dfranke at gcc dot gnu dot org 2007-05-19 21:31 ------- $> cat assign.f90 real :: a(3), b(2) a = 5.0 b = (/ 0.0, 0.1 /) a = cos(b) print *, a end
$> gfortran-svn assign.f90 assign.f90:4.1: a = cos(b) 1 Error: different shape for array assignment at (1) on dimension 1 (3/2) Both testcases, this one and in the original report, differ in the location of the respective initialization only. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32002