public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "neil at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode Date: Fri, 24 Jun 2005 22:24:00 -0000 [thread overview] Message-ID: <20050624222424.727.qmail@sourceware.org> (raw) In-Reply-To: <20050624020406.22168.geoffk@gcc.gnu.org> ------- Additional Comments From neil at gcc dot gnu dot org 2005-06-24 22:24 ------- (In reply to comment #6) > Yup, it's documented. However, it's still silently accepted even with -pedantic, and the language doesn't > permit that. My copy of the standard only requires a constant expression - can you point out where you read its requiring an integer constant expression? The standard explicitly permits extensions to constant expressions. Since this extension is explicitly documented as for use in #if expressions, it should be obvious that we intend #foo as a constant expression. No diagnostic is therefore required. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22168
next prev parent reply other threads:[~2005-06-24 22:24 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-06-24 2:04 [Bug preprocessor/22168] New: #if #A == #B should have a diagnostic geoffk at gcc dot gnu dot org 2005-06-24 9:06 ` [Bug preprocessor/22168] " schwab at suse dot de 2005-06-24 14:56 ` neil at gcc dot gnu dot org 2005-06-24 15:19 ` geoffk at gcc dot gnu dot org 2005-06-24 15:26 ` schwab at suse dot de 2005-06-24 15:42 ` pinskia at physics dot uc dot edu 2005-06-24 15:42 ` [Bug preprocessor/22168] New: " Andrew Pinski 2005-06-24 18:02 ` [Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode geoffk at gcc dot gnu dot org 2005-06-24 22:24 ` neil at gcc dot gnu dot org [this message] 2005-06-24 22:26 ` pinskia at gcc dot gnu dot org 2005-06-24 22:41 ` schwab at suse dot de 2005-06-24 23:09 ` joseph at codesourcery dot com 2005-06-25 22:11 ` jsm28 at gcc dot gnu dot org [not found] <bug-22168-638@http.gcc.gnu.org/bugzilla/> 2006-12-29 2:54 ` tromey at gcc dot gnu dot org 2007-01-01 21:57 ` patchapp at dberlin dot org 2007-01-08 1:33 ` tromey at gcc dot gnu dot org 2007-05-21 8:54 ` manu at gcc dot gnu dot org 2008-02-26 20:49 ` tromey at gcc dot gnu dot org 2008-05-13 14:52 ` tromey at gcc dot gnu dot org 2008-05-13 15:22 ` tromey at gcc dot gnu dot org
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=20050624222424.727.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).