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/29580] integer -2147483648 out of range: bug or feature?



------- 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


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