From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2773 invoked by alias); 28 Apr 2003 12:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2760 invoked by uid 71); 28 Apr 2003 12:36:00 -0000 Date: Mon, 28 Apr 2003 12:36:00 -0000 Message-ID: <20030428123600.2759.qmail@sources.redhat.com> To: geoffk@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Vladimir Merzliakov" Subject: Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99" Reply-To: "Vladimir Merzliakov" X-SW-Source: 2003-04/txt/msg01240.txt.bz2 List-Id: The following reply was made to PR c++/10470; it has been noted by GNATS. From: "Vladimir Merzliakov" To: , , , , , "Vladimir Merzliakov" 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