[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2006-10-24 Thread kargl at gcc dot gnu dot org
--- Comment #1 from kargl at gcc dot gnu dot org 2006-10-24 14:47 --- It is not a bug. "i = - 2147483648" is a unary minus operation on the number 2147483648. This number overflows the range. If you want the most negative number for an integer use "i = - huge(i) - 1". I've already po

[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2006-10-24 Thread kloedej at knmi dot nl
--- Comment #2 from kloedej at knmi dot nl 2006-10-24 15:04 --- In my simple view as a physicist the minus sign is an integral part of the number and not an operation on it, but then I didn't have a formal computer science education. As a gfortran programmer you have a choice here I woul

[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2006-10-24 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2006-10-24 15:25 --- (In reply to comment #2) > In my simple view as a physicist the minus sign is an integral part of the > number and not an operation on it, but then I didn't have a formal computer > science education. As a gfortran pro

[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2006-10-24 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-10-24 15:57 --- You should note that C has the same issue really. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29580

[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2006-10-25 Thread kloedej at knmi dot nl
--- Comment #5 from kloedej at knmi dot nl 2006-10-25 07:16 --- Thanks for your additional explanation, and the link to the original mail in the mailing list. A last remark on my side is then about the actual text of this error message. People not familiar with the choice made in the fo

[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2006-10-31 Thread kloedej at knmi dot nl
--- Comment #6 from kloedej at knmi dot nl 2006-10-31 08:25 --- A short additional remark on this item: I just learned (thanks to Paul Poli) that the NAGware f95 compiler does behave in the same way as gfortran, i.e. refusing to compile the constant -2147483648 in: integer(KIND=4) :: i

[Bug fortran/29580] integer -2147483648 out of range: bug or feature?

2007-02-27 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-02-27 21:50 --- *** Bug 30985 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---