------- Comment #2 from jason at redhat dot com  2008-09-19 18:14 -------
Subject: Re:  [4.4 regression] ICE returning
 a struct

jakub at gcc dot gnu dot org wrote:
> IMHO either we relax the checking, allowing DECL_INITIAL to be error_mark_node
> even for !TREE_STATIC, or finalize_nrv_r would need to clear DECL_INITIAL.
> I don't know what consequences the latter might have though.

There is a general convention that DECL_INITIAL of error_mark_node means 
"this is initialized by other code".  But that doesn't seem to apply to 
automatic variables; changing finalize_nrv_r to clear DECL_INITIAL 
instead of setting it to error_mark_node shouldn't break anything.

Jason


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37568

Reply via email to