public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Vladimir Merzliakov" <wanderer@rsu.ru> To: geoffk@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/10470: [pch] spurious warning about "anonymous variadic macros were introduced in C99" Date: Mon, 28 Apr 2003 12:36:00 -0000 [thread overview] Message-ID: <20030428123600.2759.qmail@sources.redhat.com> (raw) 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
next reply other threads:[~2003-04-28 12:36 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-28 12:36 Vladimir Merzliakov [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-04-24 1:33 bangerth
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030428123600.2759.qmail@sources.redhat.com \ --to=wanderer@rsu.ru \ --cc=gcc-prs@gcc.gnu.org \ --cc=geoffk@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).