On Mon, Jun 10, 2013 at 2:30 PM, Jason Merrill <ja...@redhat.com> wrote: > On 06/08/2013 09:34 AM, Andrew Sutton wrote: >> >> I think I previously put constraint_info in lang_decl_min, right next >> to template_info no less. It was easy to manage there, and initialized >> as part of build_template_decl. But this obviously doesn't work for >> partial specializations unless they get template_decls. > > > Right. And we would want it to be specific to template_decls, not all decls > that use lang_decl_min.
yes, exactly my feedback on the original implementation. I am still surprised though that we don't generate TEMPLATE_DECLs for partial instantiations (since they are still morally templates.) -- Gaby