[Bug c++/70529] Unhelpful diagnostic for hex float literals, inconsistent parsing

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 7 21:32:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70529

--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #6)
> But that wouldn't make any difference between 0x123p-2 and 0x123p     -   2
> (or some of them coming from macro, other not etc.).
> So perhaps you want to also check the locus of each of the tokens and find
> out if they are actually consecutive in the source.

Hm, true. That seems more complicated. Possible, but too complicated for me
right now. Perhaps Axel wants to give it a try if he thinks it is important
enough.

Otherwise, perhaps worth mentioning that signed hexadecimal floats are only
available in C++1z in porting_to.html.


More information about the Gcc-bugs mailing list