c/813

neil@gcc.gnu.org neil@gcc.gnu.org
Wed Nov 15 10:34:00 GMT 2000


Synopsis: preprocessing error: concatination of negative integers as parameter in constants

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Wed Nov 15 10:34:13 2000
State-Changed-Why:
    Not a bug.  -5 is two tokens: "-" and "5".
    Pasting 1e and - gives "1e-"; 5 is a separate token.
    The stand-alone preprocessor emphasizes that fact by
    inserting a space.  Not inserting a space would not change
    the fact that the integrated preprocessor passes two separate
    tokens to the compiler front end; indeed it ensures that
    re-reading a preprocessed file results in the same tokenisation.
    You can consider that your code worked with older versions
    of gcc to be a bug in those versions.
    
    You can probably get the effect you want with a
    separate macro for negative numbers.
    
    Neil.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=813&database=gcc


More information about the Gcc-bugs mailing list