J
jacob navia
jameskuyper a écrit :
Good. That means that (if and only if) in conforming mode I should
emit a "warning, obscure specs ignored".
I do not know what to say actually. The wording I had was:
Error tg3.c: 3 '0xE-2' is a preprocessing number but an invalid integer constant.
But this is completely obscure. The message of gcc is clearer
(invalid suffix -2 in integer constant).
What wording would be OK with this obscure error?
Sorry - I got that backwards. Removing that diagnostic renders lcc-win
non-conforming. If, after generating the required diagnostic, your
compiler then chose to break up the pre-processing token into multiple
tokens, that would be perfectly conforming, since the standard does
not define the behaviour when a pp-number fails to parse as a valid
token in phase 7.
Good. That means that (if and only if) in conforming mode I should
emit a "warning, obscure specs ignored".
I do not know what to say actually. The wording I had was:
Error tg3.c: 3 '0xE-2' is a preprocessing number but an invalid integer constant.
But this is completely obscure. The message of gcc is clearer
(invalid suffix -2 in integer constant).
What wording would be OK with this obscure error?