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]

Re: preprocessor/3852: cpp: parantheses wrong in variable argument macros


Synopsis: cpp: parantheses wrong in variable argument macros

State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Sat Jul 28 03:58:21 2001
State-Changed-Why:
    3.0 gives the much prettier:-
    
    $ cpp /tmp/test.c
    # 9 "/tmp/test.c"
    void main() {
      (0);
      (0, (0));
      (0, 0);
      (0);
    }
    
    which is what I imagine you wanted.  It's good to know this is fixed;
    I didn't realise there were bugs in 2.95.2 macro varargs.  3.0 is completely
    rewritten from scratch.
    
    Yours is an interesting testcase.  Do you mind if I butcher it into test suite
    form?
    
    Neil.

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


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