This is the mail archive of the gcc-prs@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]

Re: c/813


The following reply was made to PR c/813; it has been noted by GNATS.

From: neil@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org,
  sashak@smlink.com
Cc:  
Subject: Re: c/813
Date: 15 Nov 2000 18:34:13 -0000

 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

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