From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25475 invoked by alias); 14 Jul 2003 12:22:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25457 invoked by alias); 14 Jul 2003 12:22:07 -0000 Date: Mon, 14 Jul 2003 12:22:00 -0000 Message-ID: <20030714122207.25455.qmail@sources.redhat.com> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030714104225.11517.gdr@gcc.gnu.org> References: <20030714104225.11517.gdr@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11517] [3.3/3.4 Regression]g++ fails to properly convert pointer expressions in conditional expressions. X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg01569.txt.bz2 List-Id: 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" 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