This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/34870 (argument-dependent lookup and class templates)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 23 Dec 2009 12:14:12 -0800
- Subject: Re: C++ PATCH for c++/34870 (argument-dependent lookup and class templates)
- References: <4AF39A42.2090809@redhat.com>
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
--
H.J.