c++/7403: An ambiguity error is flagged during cast with proper perfect single match.
jdennett@gcc.gnu.org
jdennett@gcc.gnu.org
Fri Nov 8 10:54:00 GMT 2002
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
More information about the Gcc-bugs
mailing list