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 preprocessor/24976] simple hexadecimal number parsed as C99 hex float



------- Comment #3 from bernie at develer dot com  2005-11-21 18:41 -------
(In reply to comment #2)

> 0xe+100 is a single preprocessing number.  If the end of 
> <http://gcc.gnu.org/onlinedocs/gcc/Incompatibilities.html> is unclear, 
> please let us know how we could have improved it so that you would have 
> realised it applies to this situation and so there is no bug.

We could handle it like we do for >> in nested template
declarations: split the token and try reparsing the
expression with the "other" meaning.  If it works, give
the friendly error message ("maybe you meant 0xe + 100?").


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24976


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