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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Mar 2007 18:57:50 -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 #9 from pinskia at gcc dot gnu dot org 2007-03-20 18:57 -------
(In reply to comment #8)
> Why do you say the code is undefined. The last version (comment #5) is totally
> valid, but possible side effects in the function k could lead to different
> results depending on the fact that the -fbounds-check is set or no.
No, the last one just shows how the code is really undefined.
> And this is not a sane behaviour.
Fortran is not C here sorry.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31269