[Bug fortran/31269] short-circuit in -fbounds-check
mimo2 at free dot fr
gcc-bugzilla@gcc.gnu.org
Tue Mar 20 20:12:00 GMT 2007
------- Comment #11 from mimo2 at free dot fr 2007-03-20 20:12 -------
hi tobi, may-be they have strong arguments as you say, but I've not catched
them. And I still believe that if there is an ambiguity in the standard, the
solution is to have a -fshort-circuit to let the user decide what he wants, and
more importantly that this option applies equally to bound-checking or not.
The other thing I wanted to add is that I've worked on alpha with f90, and I
could bound-check my program, so I guess they were short-circuiting it. Then I
switched to linux with pgf90, and there also bound-check was working with my
program. Now I'm trying free compilers, i.e. gfortran and g95. With g95,
short-circuit is also applied on bound-checks. There is only gfortran which has
this singular behaviour. I agree this doesn't prove anything, and may-be
gfortran is the only "standard compliant" program. But I'll stop this
discussion here, and will stay with g95 when I want to bound-check my program.
Thanks anyway to all for the time spent to answer my questions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31269
More information about the Gcc-bugs
mailing list