http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55466
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-11-29 18:52:27 UTC --- Created attachment 28829 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28829 Proposed fix I suppose something across these lines should do the trick. I am not sure what exactly is the codition for var to be needed to go through wrapup_global_decl. Also I think types are usually going in there, too.