This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: Yet another whack at references
- From: Michael Matz <matz at suse dot de>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 8 Mar 2003 00:03:37 +0100 (CET)
- Subject: Re: C++ PATCH: Yet another whack at references
Hi,
On Fri, 7 Mar 2003, Mark Mitchell wrote:
> Anyhow, here's another go, fixing the extra copy problem Jason
> discovered yesterday.
Cool. This also fixes the testcase with the abstract base I posted. Many
thanks. I noticed just one thing in the actual committed state of the 3.3
branch, namely the ChangeLog entry (I only saw it because I manyally
copied it to a different version of GCC ;) ), which there looks like:
* call.c (reference_binding): Remove REF_IS_VAR parameter.
(implicit_conversion): Adjust call to reference_binding.
(make_temporary_var_for_ref_to_type): Add TYPE parameter.
(initialize_reference): Adjust handling for references bound to
rvalues.
* cp-tree.h (make_temporary_var_for_ref_to_temp): Change
prototype.
(real_non_cast_lvalue_p): New method.
* cvt.c (build_up_reference): Adjust use of
make_temporary_var_for_ref_to_temp.
* tree.c (
Note the apparent cut-off at the last line.
Ciao,
Michael.