From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6857 invoked by alias); 14 Jul 2003 11:23:56 -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 6843 invoked by uid 48); 14 Jul 2003 11:23:56 -0000 Date: Mon, 14 Jul 2003 11:23:00 -0000 Message-ID: <20030714112356.6842.qmail@sources.redhat.com> From: "pinskia at physics dot uc dot edu" 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/msg01567.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 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.