This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32002] [4.2/4.3 regression] insufficient conformance check when assigning the result of an elemental function to an array
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2007 20:31:47 -0000
- Subject: [Bug fortran/32002] [4.2/4.3 regression] insufficient conformance check when assigning the result of an elemental function to an array
- References: <bug-32002-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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