public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "falk at debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/12667] [3.3 regression] max(enum) returns reference to temporary
Date: Sun, 16 Nov 2003 17:55:00 -0000	[thread overview]
Message-ID: <20031116175517.4346.qmail@sources.redhat.com> (raw)
In-Reply-To: <20031017235414.12667.mdorey@bluearc.com>


------- Additional Comments From falk at debian dot org  2003-11-16 17:55 -------
(In reply to comment #4)
> The code in comment #3 is definitely wrong. You call 
>   max(E1,E2) 
> both E1 and E2 are names that when evaluated yield temporary variables.

I don't think so. The standard says:

"The identifiers in an enumerator-list are declared as constants, and can appear
wherever constants are required."


-- 


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


  parent reply	other threads:[~2003-11-16 17:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-18  0:15 [Bug c++/12667] New: " mdorey at bluearc dot com
2003-10-18  0:46 ` [Bug c++/12667] " pinskia at gcc dot gnu dot org
2003-11-15 11:31 ` [Bug c++/12667] [3.3 regression] " pinskia at gcc dot gnu dot org
2003-11-15 14:07 ` mdorey at bluearc dot com
2003-11-16 17:47 ` bangerth at dealii dot org
2003-11-16 17:55 ` falk at debian dot org [this message]
2003-11-18  5:28 ` pinskia at gcc dot gnu dot org
2003-11-19  4:23 ` gdr at integrable-solutions dot net
2003-11-20  7:16 ` mdorey at bluearc dot com
2003-11-20  7:18 ` pinskia at gcc dot gnu dot org
2003-11-20  7:23 ` mdorey at bluearc dot com
2003-12-22 23:30 ` pinskia 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=20031116175517.4346.qmail@sources.redhat.com \
    --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).