public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "joseph at codesourcery dot com" <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 23:09:00 -0000	[thread overview]
Message-ID: <20050624230915.29073.qmail@sourceware.org> (raw)
In-Reply-To: <20050624020406.22168.geoffk@gcc.gnu.org>


------- Additional Comments From joseph at codesourcery dot com  2005-06-24 23:09 -------
Subject: Re:  #if #A == #B should have a diagnostic
 in ISO C mode

On Fri, 24 Jun 2005, neil at gcc dot gnu dot org wrote:

> My copy of the standard only requires a constant expression - can you point out
> where you read its requiring an integer constant expression?

6.10.1#1, "shall be an integer constant expression"; 6.8.1 in C90.

> The standard explicitly permits extensions to constant expressions.  Since this

But not to integer constant expressions (at least according to the view 
expressed in the DR#312 discussion in the draft Lillehammer minutes, 
although DR#032 implies a different view).



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22168


  parent reply	other threads:[~2005-06-24 23:09 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 ` [Bug preprocessor/22168] New: " Andrew Pinski
2005-06-24 15:42 ` [Bug preprocessor/22168] " pinskia at physics dot uc dot edu
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
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 [this message]
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=20050624230915.29073.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: link
Be 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).