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 #3 from burnus at gcc dot gnu dot org  2008-07-28 11:21 -------
> Why a run-time check?
Because the shape might not be known at compile time? And a compile-time check
because compile-time checks are nicer ;-)

> AFAIK, we can always determine the rank at runtime
Yes, the RANK should be known (even) at compile time, but the SHAPE might be
only be known at run time. (Shape = how many elements per dimension; rank =
number of dimensions.)

(By the way, the rank is already checked.)


-- 


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]