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]

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


>>>>> "Gabriel" == Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr> 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
course.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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