This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2003 11:23:56 -0000
- Subject: [Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
- References: <20030714104225.11517.gdr@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11517
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC target triplet|native |*-*-*
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2003-07-14 11:23:55
date| |
Summary|g++ fails to properly |[3.3/3.4 Regression]g++
|convert pointer expressions |fails to properly convert
|in conditional expressions. |pointer expressions in
| |conditional expressions.
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-14 11:23 -------
Here is a reduced sources:
struct Term { };
struct Boolean : Term {
explicit Boolean(bool);
};
struct IsZero : Term {
Term *eval();
};
Term*
IsZero::eval()
{
return true ? new Boolean(false) : this;
}
I can confirm this fails on the mainline (20030714), 3.3.1 (20030707), 3.2.3, 3.0.4 but it does not
fail on 2.95.3 making this a regression.