[Bug fortran/36874] Add shape checks to cshift/eoshift
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jul 19 13:49:00 GMT 2008
------- Comment #1 from burnus at gcc dot gnu dot org 2008-07-19 13:48 -------
Note: One should have a run-time and a compile-time check.
Example:
real, dimension(1,0) :: a, b, c
b = eoshift (a,(/1/))
Since dim=1, the shape of the 2nd dimension of A needs to be the same as the
first dimension of SHAPE. However, for A one has 0 while for SHAPE it is 1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36874
More information about the Gcc-bugs
mailing list