This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31269] short-circuit in -fbounds-check
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2007 17:37:06 -0000
- Subject: [Bug fortran/31269] short-circuit in -fbounds-check
- References: <bug-31269-9375@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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