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]

Re: [C++ PATCH]: Fix bug 3624




--On Wednesday, July 25, 2001 08:38:24 PM +0100 Nathan Sidwell 
<nathan@codesourcery.com> wrote:

> Mark,
> Template instantiation can leave expressions with REFERENCE_TYPE,
> which we were not calling convert_from_reference on. I recall fixing
> this before, but clearly missed the method call case. This moves
> the conversions earlier in build_new_op, and does the right thing
> for argument lists too.
>
> booted & tested on i686-pc-linux-gnu, ok for branch & mainline?

Yes.  As a long-term goal, we should actually make the type
of each expression match what the standard says it should be.  (And,
of course, the standard says that there are no expressions with
reference type.)  There are some tricky bits in the compiler where we get 
things wrong because of issues like these.

Thanks,

-- 
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]