------- Additional Comments From coyote at coyotegulch dot com  2004-10-22 00:05 
-------
When this topic came up last year, I was in favor of gfortran working like other
Fortran 95 compilers, which accept minimum integer values of -(2**(n-1)).
Several Fortran language lawyers insisted that the default behavior should be to
reject such values, as they are not symmetrical across ABS() (a requirement
implied by the Standard.)

My previous patches for this problem have catered to the language lawyers by
adding a switch to enable "asymmetric" integers. I never liked doing it that way.

After a discussion with Tobias Schlüter, I've decided to present the following
patch, which causes gfortran to behave exactly like other Fortran 95 compilers.
For a -pedantic compile, gfortran will now display a warning about a potential
Standard violation.

This patch gives me warm fuzzies. The gods only know what the language lawyers
will think... :)

Bootstrapped and tested on i686-pc-linux and x86_64-pc-linux.

http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01876.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13490

Reply via email to