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/36874] Add shape checks to cshift/eoshift



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


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