This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29580] integer -2147483648 out of range: bug or feature?
- From: "kloedej at knmi dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Oct 2006 07:16:27 -0000
- Subject: [Bug fortran/29580] integer -2147483648 out of range: bug or feature?
- References: <bug-29580-11277@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 fortran standard to handle the
minus here as a unary operator will still be puzzled (like I was) by a message
like:
i=-2147483648
1
Error: Integer too big for its kind at (1)
Maybe it is possible to make the error message a bit more verbose, like:
i=-2147483648
1
Error: Integer 2147483648 in unary_minus(2147483648) at (1) too big for its
kind
This way it is clear to everybody how it is implemented and what is happening.
best regards,
Jos.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29580