This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99"


The following reply was made to PR c++/10470; it has been noted by GNATS.

From: "Vladimir Merzliakov" <wanderer at rsu dot ru>
To: <gcc-gnats at gcc dot gnu dot org>, <and at rsu dot ru>, <geoffk at gcc dot gnu dot org>,
   <gcc-bugs at gcc dot gnu dot org>, <gcc-prs at gcc dot gnu dot org>,
   "Vladimir Merzliakov" <wanderer at rsu dot 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
 
 


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