http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56052
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-21 17:20:11 UTC --- Created attachment 29243 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29243 gcc48-pr56052.patch Anyway, the following patch fixes the ICE, by making the artificial var DECL_ARTIFICIAL (and no need to emit it into debug info anyway). If it is DECL_ARTIFICIAL, then the Fortran privatize_by_reference hook won't return true on it, even when it has POINTER_TYPE type.