This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99"
- From: bangerth at dealii dot org
- To: and at rsu dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, geoffk at gcc dot gnu dot org, nobody at gcc dot gnu dot org, wanderer at rsu dot ru
- Date: 24 Apr 2003 01:33:57 -0000
- Subject: Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99"
- Reply-to: bangerth at dealii dot org, and at rsu dot ru, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, geoffk at gcc dot gnu dot org, nobody at gcc dot gnu dot org, wanderer at rsu dot ru, gcc-gnats at gcc dot gnu dot org
Old Synopsis: anonymous variadic macros were introduced in C99 warning at pch using
New Synopsis: [pch] spurious warning about "anonymous variadic macros were introduced in C99"
Responsible-Changed-From-To: unassigned->geoffk
Responsible-Changed-By: bangerth
Responsible-Changed-When: Thu Apr 24 01:33:56 2003
Responsible-Changed-Why:
pch
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Apr 24 01:33:56 2003
State-Changed-Why:
Geoff, I think you're being overly harsh -- the bug report
includes everything one needs to reproduce the problem. I
see the very same reported problem on my linux box. It
should be simple for you as well to reproduce this.
W.
g/x> cat x.h
#include<string>
g/x> cat x.cc
#include"x.h"
int main() {
return 0;
}
g/x> rm x.h.gch
rm: cannot remove `x.h.gch': No such file or directory
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -ansi -pedantic -Werror -Winvalid-pch -c x.cc
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -ansi -pedantic -Werror -Winvalid-pch -c x.h
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -ansi -pedantic -Werror -Winvalid-pch -c x.cc
x.cc:679:2: anonymous variadic macros were introduced in C99
Note also the bogus line number 679, which certainly doesn't
exist in this file.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10470