[Bug fortran/31269] short-circuit in -fbounds-check
tobi at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 19 17:37:00 GMT 2007
------- Comment #2 from tobi at gcc dot gnu dot org 2007-03-19 17:37 -------
I'm not going to dig through the standard again to dig out the precise wording,
but as long as one doesn't actually access the out-of-bound array element the
program is valid. Furthermore, the standard allows short-circuiting logic.
Finally, bounds checking is not defined by the standard.
I agree with the submitter that this behavior is at least surprising, and could
be enhanced upon.
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31269
More information about the Gcc-bugs
mailing list