public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/39055] [4.3/4.4/4.5 regression] ICE with questionable default parameter of a member function
Date: Sat, 18 Jul 2009 11:26:00 -0000	[thread overview]
Message-ID: <20090718112607.16422.qmail@sourceware.org> (raw)
In-Reply-To: <bug-39055-1771@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from reichelt at gcc dot gnu dot org  2009-07-18 11:26 -------
GCC's history with this code is:

* GCC 2.95.3          rejects
* GCC 3.0   - 3.2.3   accepts
* GCC 3.3   - 3.3.6   rejects
* GCC 3.4.0 - 4.3.x   crashes
* GCC 4.4.0 - trunk   accepts

Without the template, only GCC 2.93.3 rejects the code, all other
versions accept it. Considering that also Intel and Comeau accept
the code (template and non-template version) I doubt that the code
is invalid.

Jason, you said:

> I was wrong; the previous paragraph says "Local variables shall not
> be used in default argument expressions."
> 3.3 was right to reject the testcase; 

IMHO "Local variables" refers to function local variables, so that
you were right in the first place (comment #3) and that the code is
indeed valid.

This would mean that we really can close the bug as fixed in GCC 4.4.0.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org
           Keywords|                            |accepts-invalid
      Known to work|3.2.3                       |


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


  parent reply	other threads:[~2009-07-18 11:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-01 10:16 [Bug c++/39055] New: [4.2/4.3/4.4 " reichelt at gcc dot gnu dot org
2009-02-01 10:16 ` [Bug c++/39055] " reichelt at gcc dot gnu dot org
2009-02-01 10:58 ` rguenth at gcc dot gnu dot org
2009-02-06  2:25 ` pinskia at gcc dot gnu dot org
2009-02-12 23:23 ` bangerth at gmail dot com
2009-02-20  5:38 ` jason at gcc dot gnu dot org
2009-03-22 14:02 ` jason at gcc dot gnu dot org
2009-03-31 21:09 ` [Bug c++/39055] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-07-18 11:26 ` reichelt at gcc dot gnu dot org [this message]
2009-07-18 11:38 ` jason at gcc dot gnu dot org
2009-08-04 12:47 ` rguenth at gcc dot gnu dot org
2009-11-12 22:48 ` jason at gcc dot gnu dot org
2009-11-13 16:16 ` jason at gcc dot gnu dot org
2010-05-22 18:29 ` [Bug c++/39055] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
2010-06-07 15:52 ` jason 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=20090718112607.16422.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).