From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11056 invoked by alias); 23 Apr 2003 18:42:30 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 11009 invoked from network); 23 Apr 2003 18:42:30 -0000 Received: from unknown (HELO asterix.rsu.ru) (195.208.245.250) by sources.redhat.com with SMTP; 23 Apr 2003 18:42:30 -0000 Received: from NPT (npt.cc.rsu.ru [195.208.252.16]) by asterix.rsu.ru (8.12.6p2/8.12.6) with SMTP id h3NIgUg7016252; Wed, 23 Apr 2003 22:42:31 +0400 (MSD) (envelope-from wanderer@rsu.ru) Message-ID: <000f01c309c8$15e56450$10fcd0c3@NPT> From: "Vladimir Merzliakov" To: "Geoff Keating" Cc: , References: <20030415122353.64376cda.bkoz@redhat.com><00c801c30992$8dbd8970$10fcd0c3@NPT> Subject: Re: [PCH bug] anonymous variadic macros were introduced in C99 warning at pch using Date: Wed, 23 Apr 2003 19:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-04/txt/msg01171.txt.bz2 > > "Vladimir Merzliakov" writes: > > > simple test.c test.h files compile without using pch > > and generate strange warning if use test.h.gch > > > > All case with options: g++ -ansi -pedantic -Werror -Winvalid-pch > > > Warning generated at line in concept_check.h:52 : > > > > #define __glibcpp_function_requires(...) > > I get: > > t.c:1:37: warning: anonymous variadic macros were introduced in C99 > > which is not exactly clear, but it is true; and I get it whether or > not I use PCH. > Hmm... script ----8X---------------------------------- #!/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 ----X8---------------------------------- generate for me output: rm: *.gch: No such file or directory !!! Compile without gch !!! GCH generation !!! Compile with gch test.cc:432:2: anonymous variadic macros were introduced in C99 May be this is platform specific case (FreeBSD 4.7) I also don't link file position in my case. I compile many my programs with same options and first recive this warning only with PCH. Vladimir