------- Comment #8 from jason at gcc dot gnu dot org 2009-11-04 23:27 ------- The problem is that we use a local_specializations hash table to look up locals when instantiating a template, and i isn't in bar()'s local_specializations, so we fail. We need to make static locals their own temploid.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291