This is the mail archive of the gcc-patches@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] |
On Mon, Nov 13, 2006 at 06:36:13PM -0800, Brooks Moses wrote:Though I agree that the "largest decimal representation" wording should be improved, I don't quite like the idea of an integer type with an "exponent range". Perhaps just "largest range"?
Check the Standard. That wording comes directly from F2003.
Also, there isn't a check to confirm that a valid kind type is supplied, and so I'll bet you ICE on an invalid kind. Unfortunately, this can't be checked in options.c (despite the fact that -qkind tried to do it that way), since the kind types haven't been processed when that's run.
gfc_convert_integer issues an error of the form
Error: Can't convert INTEGER(42) to INTEGER(4) at (1).
If you prefer I can add a call to gfc_validate_kind right before the BOZ conversion.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |