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] |
However, in a DATA statement, the values are not "constants", they are "data-stmt-constants", defined in rule R540, and these use signed literal constants (including signed-int-literal-constant) rather than unsigned ones. As expressions are not allowed as DATA statement values, the interpretation of a negative integer remains unambiguous.
Thus, while
INTEGER J = -2147493648
is not permitted,
INTEGER J DATA J / -2147493648 /
is permitted. (Note that 4.3.1.1, line 25, explicitly states that "Any integer value may be represented as a signed-int-literal-constant.")
Brooks,
Can you open a PR? I did not realize that there was this hair splitting. Oh, and this isn't going to be easy to fix.
Cheers, - Tobi
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |