C++ PATCH for c++/34870 (argument-dependent lookup and class templates)

H.J. Lu hjl.tools@gmail.com
Sat Apr 17 14:53:00 GMT 2010

On Wed, Dec 23, 2009 at 1:14 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Thu, Nov 5, 2009 at 7:38 PM, Jason Merrill <jason@redhat.com> wrote:
>> We need to call complete_type on associated classes before we try to look
>> through their friend lists.  Doing that required a change to
>> instantiate_class_template to use uses_template_parms (which works when
>> processing_template_decl is false) rather than dependent_type_p (which
>> doesn't) in order to avoid trying to instantiate the template pattern
>> itself.
>> Tested x86_64-pc-linux-gnu, applied to trunk.
> This caused infinite recursion:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305

This also caused:



More information about the Gcc-patches mailing list