http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51865
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-15 19:11:55 UTC --- Created attachment 26334 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26334 gcc47-pr51865.patch Untested fix. If DECL_RESULT has void type, it must have remap_decl called on it, otherwise we share the same RESULT_DECL between multiple functions.