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]

Re: c++/10212: Preprocessor ## problem


Synopsis: Preprocessor ## problem

State-Changed-From-To: open->closed
State-Changed-By: zack
State-Changed-When: Tue Mar 25 18:32:08 2003
State-Changed-Why:
    Not a bug.  C++98 [cpp.concat]/3:
    
      If the result [of pasting two tokens together] is not 
      a valid preprocessing token, the behavior is undefined.  
    
    GCC chooses to issue a hard error.
    
    The ## in the macro in your example is totally unnecessary.  Remove it and your program will work correctly both with GCC 3.3 and with all other compilers.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10212


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