http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57649
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Actually, it ICEs even without inlining, so guess the issue is just that we have a local static var that is referenced by some other function (thus used) and we don't mark its DECL_INITIAL as referenced.