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 c++/70529] Unhelpful diagnostic for hex float literals, inconsistent parsing


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.

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