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/34741] Bounds-check of array-pointer == [ constructor ]



------- Comment #1 from burnus at gcc dot gnu dot org  2008-01-12 18:01 -------
gfortran does only create a check for ptr itself and not for ptr <->
constructor; the created check looks (with some temporary variables added) as
follows:
  if (prt.lbound < ptr.lbound || ptr.lbound > ptr.ubound)

(It were be also great if this would not be written by gfortran as it is rather
useless; though the middle end will remove it using -O.)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34741


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