public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: rth@gcc.gnu.org
To: dima@cc.hut.fi, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	nobody@gcc.gnu.org
Subject: Re: c/5336: initializer element is not constant
Date: Mon, 29 Apr 2002 18:25:00 -0000	[thread overview]
Message-ID: <20020430012552.12477.qmail@sources.redhat.com> (raw)

Synopsis: initializer element is not constant

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Mon Apr 29 18:25:50 2002
State-Changed-Why:
    Not a bug.  Constant data does not a constant expression make.
    See section 6.6 of the ISO C standard.  In part:
    
    An integer constant expression shall have integer type and shall only have operands
    that are integer constants, enumeration constants, character constants, sizeof
    expressions whose results are integer constants, and floating constants that are the
    immediate operands of casts. Cast operators in an integer constant expression shall only
    convert arithmetic types to integer types, except as part of an operand to the sizeof
    operator.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5336


             reply	other threads:[~2002-04-30  1:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-29 18:25 rth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-29 13:46 Luben Tuikov
2002-01-09  8:36 dima

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=20020430012552.12477.qmail@sources.redhat.com \
    --to=rth@gcc.gnu.org \
    --cc=dima@cc.hut.fi \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@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).