https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70449
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 38157 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38157&action=edit gcc6-pr70449.patch Untested fix that attempts not to handle the case of fun being instantiation of the current_function_decl like fun == current_function_decl case.