From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17310 invoked by alias); 8 Nov 2002 18:54:49 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 17290 invoked by uid 61); 8 Nov 2002 18:54:48 -0000 Date: Fri, 08 Nov 2002 10:54:00 -0000 Message-ID: <20021108185448.17289.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hkb@eastcoastpaperstock.com, nobody@gcc.gnu.org From: jdennett@gcc.gnu.org Reply-To: jdennett@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hkb@eastcoastpaperstock.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/7403: An ambiguity error is flagged during cast with proper perfect single match. X-SW-Source: 2002-11/txt/msg00425.txt.bz2 List-Id: Synopsis: An ambiguity error is flagged during cast with proper perfect single match. State-Changed-From-To: open->closed State-Changed-By: jdennett State-Changed-When: Fri Nov 8 10:54:46 2002 State-Changed-Why: This is not a bug. B::operator A() is not a perfect match, because of the const-qualification. If the B object in the example code is declared const, the code is legal and g++ compiles it correctly. como also diagnoses the error in the example code, with similar wording to g++. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7403