From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9514 invoked by alias); 14 Jul 2003 15:09:23 -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 9498 invoked by uid 48); 14 Jul 2003 15:09:23 -0000 Date: Mon, 14 Jul 2003 15:09:00 -0000 Message-ID: <20030714150923.9497.qmail@sources.redhat.com> From: "bangerth at dealii dot org" 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/msg01584.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 bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING ------- Additional Comments From bangerth at dealii dot org 2003-07-14 15:09 ------- I am not at all sure that the code is legal, and even less that it is a regression. The standard says that the two operands shall have the same type, or that one should be convertible to the other one. This is not the case here, where both would have to be converted to pointer-to-base. FWIW, icc doesn't accept the code either. Gaby, would you mind explaining on which part of 5.16 you base your opinion? W.