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 to static reference temporaries


> 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


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