--- Comment #5 from dfranke at gcc dot gnu dot org 2007-05-21 22:37 ---
Related report: PR26976
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32002
--- Comment #6 from dfranke at gcc dot gnu dot org 2007-05-21 23:25 ---
Subject: Bug 32002
Author: dfranke
Date: Mon May 21 22:24:55 2007
New Revision: 124924
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=124924
Log:
gcc/fortran:
2005-05-21 Jerry DeLisle [EMAIL PROTECTED]
--- Comment #3 from dfranke at gcc dot gnu dot org 2007-05-20 13:12 ---
This triggers the error ...
real :: a(3), b(2)
a = COS(b(:))
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32002
--- Comment #4 from patchapp at dberlin dot org 2007-05-21 00:16 ---
Subject: Bug number PR32002
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01315.html
--
--- 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
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-05-20 01:21
---
I have observed the problem with no initialization. This may be a hint.
real :: a(3), b(2)
a = COS(b)
print *, a
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32002