[Bug fortran/32002] [4.2/4.3 regression] insufficient conformance check when assigning the result of an elemental function to an array
dfranke at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat May 19 20:32:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list