------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-07-15 23:07 ------- While calling ggc_free may be a bad idea in general, it's certainly a good idea in this case; empirically, that change resulted in a significantly faster compiler, as the comment in the code indicates. Furthermore, anything using NEWDECL after we returned was broken anyhow; this is just showing us the problem.
Unfortunately, I'm not able to reproduce this problem on my machine. Is there any additional information about how we're using DECL_TEMPLATE_SPECIALIZATIONS? Or, information about your exact GC parameters to I can try to reproduce it that way? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22139