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

neil@gcc.gnu.org neil@gcc.gnu.org
Sat Jul 28 03:59:00 GMT 2001


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



More information about the Gcc-bugs mailing list