[Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions.
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Mon Jul 14 12:22: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
------- Additional Comments From gdr at integrable-solutions dot net 2003-07-14 12:22 -------
Subject: Re: [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> writes:
| 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;
| }
Funny, I tried that reduced testcase first, but somehow it didn't
display the regression, hence the slightly bigger testcase.
Thanks,
-- Gaby
More information about the Gcc-bugs
mailing list