public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99"
@ 2003-04-28 12:36 Vladimir Merzliakov
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Merzliakov @ 2003-04-28 12:36 UTC (permalink / raw)
To: geoffk; +Cc: gcc-prs
The following reply was made to PR c++/10470; it has been noted by GNATS.
From: "Vladimir Merzliakov" <wanderer@rsu.ru>
To: <gcc-gnats@gcc.gnu.org>, <and@rsu.ru>, <geoffk@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
"Vladimir Merzliakov" <wanderer@rsu.ru>
Cc:
Subject: Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99"
Date: Mon, 28 Apr 2003 16:31:52 +0400
I prepare more simple testcase (now it not use any GCC headers)
Sorry, i can't provide test.ii file (in this case bug isn't catched
and test.cc compile fine with and without using PCH)
Needed files:
-testsys.h----8<--------
#pragma GCC system_header
#define __glibcpp_function_requires(...)
-testsys.h---->8--------
-test.h----8<-----------
#include"testsys.h"
-test.h---->8-----------
-test.cc---8<-----------
#include"test.h"
-test.cc--->8-----------
Script:
-t---8<-----------
#!/bin/sh -
rm *.gch
echo !!! Compile without gch
g++ -ansi -Werror -pedantic -Winvalid-pch -o test.o -c test.cc
echo !!! GCH generation
g++ -ansi -Werror -pedantic -Winvalid-pch -o test.h.gch -c test.h
echo !!! Compile with gch
g++ -ansi -Werror -pedantic -Winvalid-pch -o test.o -c test.cc
-t--->8-----------
generate output:
----8<-----------
!!! Compile without gch
!!! GCH generation
!!! Compile with gch
test.cc:42:2: anonymous variadic macros were introduced in C99
---->8-----------
GCC in PCH mode don't remember "#pragma GCC system_header" in testsys.h
Also error location (test.cc:42:2) is invalid.
I use for testing gcc version 3.4 20030428 (experimental)
at FreeBSD 4.7-RELEASE-p9 .
Vladimir
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10470
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99"
@ 2003-04-24 1:33 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-24 1:33 UTC (permalink / raw)
To: and, gcc-bugs, gcc-prs, geoffk, nobody, wanderer
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-28 12:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-28 12:36 c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99" Vladimir Merzliakov
-- strict thread matches above, loose matches on Subject: below --
2003-04-24 1:33 bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).