https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80856
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed May 31 17:53:12 2017 New Revision: 248754 URL: https://gcc.gnu.org/viewcvs?rev=248754&root=gcc&view=rev Log: PR c++/80856 - ICE with local extern in template * semantics.c (finish_call_expr): Replace a local extern overload set in a template with the IDENTIFIER_NODE. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/template/local-fn2.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/semantics.c