This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to static reference temporaries
- To: Jason Merrill <jason_merrill at redhat dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Subject: Re: C++ PATCH to static reference temporaries
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 25 Jul 2001 14:44:53 -0700
> To keep the grok_refrence_init change from breaking non-static refs, I had
> to change cp_finish_decl so that the DECL_STMT for the new decl is added
> after the initializer has been analyzed, so that the DECL_STMT for the ref
> temp would be expanded first. I think this makes sense; anyone disagree?
That makes good sense to me.
It might be helpful if you would add a comment about this at the
call to cp_finish_decl.
+ /* automatic; make sure we handle the cleanup properly. */
Should be capitalized, I think.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com