This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8316: Confusing diagnostic for code that misuses conversion operators
- From: bangerth at dealii dot org
- To: austern at apple dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 20 Dec 2002 01:16:34 -0000
- Subject: Re: c++/8316: Confusing diagnostic for code that misuses conversion operators
- Reply-to: bangerth at dealii dot org, austern at apple dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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