This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32002] [4.2/4.3 regression] insufficient conformance check when assigning the result of an elemental function to an array



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]