Updated as per comments.

I moved the resolve_template_scope function out to
finish_template_type. I couldn't figure out how to get the parsed
template parameter from the looked-up template in
lookup_class_template. That information may not be available outside
the parse state.

Andrew
Andrew Sutton


On Wed, Sep 4, 2013 at 3:49 PM, Jason Merrill <ja...@redhat.com> wrote:
> On 09/04/2013 01:33 PM, Andrew Sutton wrote:
>>
>> Ah. The goal is to check after we've deduced/coerced template
>> arguments into a valid substitution. With functions, that's in
>> fn_type_unification (hopefully called from instantiate_template)
>
>
> Actually fn_type_unification calls instantiate_template, but yep, we're on
> the same page.
>
> Jason
>

Attachment: templates.patch
Description: Binary data

Reply via email to