Noisy when choosing T::operator Type() vs T::op constType() const

Mark Mitchell
Sun Sep 17 22:49:00 GMT 2000

>>>>> "Gabriel" == Gabriel Dos Reis <> writes:

    Gabriel> To tell the truth, I don't find the diagnostic really
    Gabriel> helpful -- if we were to include it, then there is no
    Gabriel> reason we should left out other C++ traps.

I agree.  Besides, the wording isn't really clear enough to enable
most people to figure out what's going on.  It couldn't possibly be,
since the rule involved is obscure, and somewhat hard to comprehend.

Alexandre says that we introduced this warning to reduce the number of
times users complained about what they perceived as incorrect
behavior.  I think that we should just grin and bear it; uneducated
users are a part of customer support.  A FAQ entry would be useful, of

Mark Mitchell         
CodeSourcery, LLC     

More information about the Gcc-bugs mailing list