This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/3852: cpp: parantheses wrong in variable argument macros
- To: asbrown at ati dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: preprocessor/3852: cpp: parantheses wrong in variable argument macros
- From: neil at gcc dot gnu dot org
- Date: 28 Jul 2001 10:58:22 -0000
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