This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/61002] Can't divide by 0
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 May 2014 22:27:52 +0000
- Subject: [Bug fortran/61002] Can't divide by 0
- Auto-submitted: auto-generated
- References: <bug-61002-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61002
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> No objection here. I had just missed -fno-range-check, see comment 1.
For the record the option is documented at
http://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html#Fortran-Dialect-Options
-fno-range-check
Disable range checking on results of simplification of constant expressions
during compilation. For example, GNU Fortran will give an error at compile time
when simplifying a = 1. / 0. With this option, no error will be given and a
will be assigned the value +Infinity. If an expression evaluates to a value
outside of the relevant range of [-HUGE():HUGE()], then the expression will be
replaced by -Inf or +Inf as appropriate. Similarly, DATA i/Z'FFFFFFFF'/ will
result in an integer overflow on most systems, but with -fno-range-check the
value will âwrap aroundâ and i will be initialized to -1 instead.
Closing as INVALID.