This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70529] Unhelpful diagnostic for hex float literals, inconsistent parsing
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Apr 2016 21:32:34 +0000
- Subject: [Bug c++/70529] Unhelpful diagnostic for hex float literals, inconsistent parsing
- Auto-submitted: auto-generated
- References: <bug-70529-4 at http dot gcc dot gnu dot org/bugzilla/>
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.