This is the mail archive of the
mailing list for the GCC project.
Re: [C++ PATCH]: Fix bug 3624
- To: Nathan Sidwell <nathan at codesourcery dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Subject: Re: [C++ PATCH]: Fix bug 3624
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 25 Jul 2001 13:37:28 -0700
--On Wednesday, July 25, 2001 08:38:24 PM +0100 Nathan Sidwell
> 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.
Mark Mitchell firstname.lastname@example.org
CodeSourcery, LLC http://www.codesourcery.com