This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36874] Add shape checks to cshift/eoshift
- From: "burnus 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 Jul 2008 13:48:27 -0000
- Subject: [Bug fortran/36874] Add shape checks to cshift/eoshift
- References: <bug-36874-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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