This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/61002] Can't divide by 0


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]