[Bug fortran/34741] Bounds-check of array-pointer == [ constructor ]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34741 Daniel Franke changed: What|Removed |Added Status|NEW |RESOLVED CC||dfranke at gcc dot gnu.org Resolution||DUPLICATE --- Comment #2 from Daniel Franke 2010-12-29 15:22:47 UTC --- Same as the other. *** This bug has been marked as a duplicate of bug 31059 ***
[Bug fortran/34741] Bounds-check of array-pointer == [ constructor ]
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2009-03-29 08:22:39 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34741
[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