[Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Mon Jul 14 11:23:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list