From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30935 invoked by alias); 20 Dec 2002 01:16:35 -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 30916 invoked by uid 61); 20 Dec 2002 01:16:34 -0000 Date: Thu, 19 Dec 2002 17:16:00 -0000 Message-ID: <20021220011634.30915.qmail@sources.redhat.com> To: austern@apple.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, austern@apple.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8316: Confusing diagnostic for code that misuses conversion operators X-SW-Source: 2002-12/txt/msg01052.txt.bz2 List-Id: Synopsis: Confusing diagnostic for code that misuses conversion operators State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Thu Dec 19 17:16:34 2002 State-Changed-Why: Confirmed. Apart from the unnecessary duplication of error messages (where does this come from, this is not even a template which would be processed in two phases?), I can only think of telling that X::operator[] (char) is chosen over ::operator[] (whatever) (note the :: at the beginning). Matt, what better message do you have in mind? I think it is not so obvious what to say here. W. (Ah, and having an index operator that takes a character instead of an integer is an abuse as well :-) http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8316