This is the mail archive of the gcc-patches@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++ PATCH: Fix PR 5293 (regression)


FYI, I've been told in the past that substituting pieces of text makes life
difficult for translators.

Also, it seems to me that the interesting case is the one where we are
trying to initialize a non-const reference from an rvalue, either because
we explicitly wrote an rvalue or because we need a conversion which
produces an rvalue.  You should test for this with NEED_TEMPORARY_P, not
real_lvalue_p.

For other cases, the old error message is correct; telling people that the
argument is an lvalue doesn't help them to find the problem with their
code.

Jason


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