This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/7403: An ambiguity error is flagged during cast with proper perfect single match.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]