public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug preprocessor/64698] New: preprocessor ignores #pragma GCC diagnostic when using -save-temps @ 2015-01-20 20:07 markus at oberhumer dot com 2015-01-20 22:40 ` [Bug preprocessor/64698] " manu at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: markus at oberhumer dot com @ 2015-01-20 20:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64698 Bug ID: 64698 Summary: preprocessor ignores #pragma GCC diagnostic when using -save-temps Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: markus at oberhumer dot com This could be related to bug 53431, though this report is about C and not C++. Actually I had thought that "-save-temps" just dumps the internal state, but that does not seem to be true. The following code: #pragma GCC diagnostic ignored "-Wundef" #if FOO #endif int main (void) { return 42; } compiled with gcc-4.9 -Wundef -Werror -save-temps -c bug_wundef.c gives: bug_wundef.c:2:5: error: "FOO" is not defined [-Werror=undef] #if FOO ^ cc1: all warnings being treated as errors On the contrary gcc-4.9 -Wundef -Werror -c bug_wundef.c does not give any error. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug preprocessor/64698] preprocessor ignores #pragma GCC diagnostic when using -save-temps 2015-01-20 20:07 [Bug preprocessor/64698] New: preprocessor ignores #pragma GCC diagnostic when using -save-temps markus at oberhumer dot com @ 2015-01-20 22:40 ` manu at gcc dot gnu.org 2021-05-27 13:15 ` markus at oberhumer dot com 2022-06-17 18:57 ` lhyatt at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: manu at gcc dot gnu.org @ 2015-01-20 22:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64698 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-01-20 CC| |manu at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- Does it go through c-ppoutput.c(scan_translation_unit)? If so, this is the same issue as PR53920. >From gcc-bugs-return-474141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 20 22:52:21 2015 Return-Path: <gcc-bugs-return-474141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11706 invoked by alias); 20 Jan 2015 22:52:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11647 invoked by uid 48); 20 Jan 2015 22:52:13 -0000 From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/64647] [5 Regression] [C++14] std::__max_element contains code not allowed in constexpr function Date: Tue, 20 Jan 2015 22:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: <bug-64647-4-8gfGgpXAgt@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-64647-4@http.gcc.gnu.org/bugzilla/> References: <bug-64647-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg02135.txt.bz2 Content-length: 449 https://gcc.gnu.org/bugzilla/show_bug.cgi?idd647 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jason at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug preprocessor/64698] preprocessor ignores #pragma GCC diagnostic when using -save-temps 2015-01-20 20:07 [Bug preprocessor/64698] New: preprocessor ignores #pragma GCC diagnostic when using -save-temps markus at oberhumer dot com 2015-01-20 22:40 ` [Bug preprocessor/64698] " manu at gcc dot gnu.org @ 2021-05-27 13:15 ` markus at oberhumer dot com 2022-06-17 18:57 ` lhyatt at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: markus at oberhumer dot com @ 2021-05-27 13:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64698 --- Comment #2 from Markus F.X.J. Oberhumer <markus at oberhumer dot com> --- Still a problem in 2021 with gcc-11.1.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug preprocessor/64698] preprocessor ignores #pragma GCC diagnostic when using -save-temps 2015-01-20 20:07 [Bug preprocessor/64698] New: preprocessor ignores #pragma GCC diagnostic when using -save-temps markus at oberhumer dot com 2015-01-20 22:40 ` [Bug preprocessor/64698] " manu at gcc dot gnu.org 2021-05-27 13:15 ` markus at oberhumer dot com @ 2022-06-17 18:57 ` lhyatt at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: lhyatt at gcc dot gnu.org @ 2022-06-17 18:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64698 Lewis Hyatt <lhyatt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE CC| |lhyatt at gcc dot gnu.org --- Comment #3 from Lewis Hyatt <lhyatt at gcc dot gnu.org> --- It is indeed a dup of PR53920. Also, I have a patch awaiting review for PR53431; that fixes all 3. *** This bug has been marked as a duplicate of bug 53920 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-17 18:57 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-01-20 20:07 [Bug preprocessor/64698] New: preprocessor ignores #pragma GCC diagnostic when using -save-temps markus at oberhumer dot com 2015-01-20 22:40 ` [Bug preprocessor/64698] " manu at gcc dot gnu.org 2021-05-27 13:15 ` markus at oberhumer dot com 2022-06-17 18:57 ` lhyatt at gcc dot gnu.org
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).