This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR c++/43327
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Dodji Seketeli <dodji at redhat dot com>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 1 May 2010 07:00:12 -0700
- Subject: Re: [PATCH] PR c++/43327
- References: <20100316105125.GR14667@redhat.com> <4BA8E7FC.7090208@redhat.com> <20100324094455.GF14667@redhat.com> <4BAA246B.8050901@redhat.com> <20100324154953.GG14667@redhat.com> <20100325143225.GL14667@redhat.com> <4BAB8983.5020409@redhat.com> <20100325194910.GM14667@redhat.com>
On Thu, Mar 25, 2010 at 12:49 PM, Dodji Seketeli <dodji@redhat.com> wrote:
> On Thu, Mar 25, 2010 at 12:04:19PM -0400, Jason Merrill wrote:
>> Rather than this I'd call add_to_template_args unconditionally and
>> fix it to handle null ARGS.
>
> Like the above patch?
>
> Tested on x86_64-unknown-linux-gnu against trunk.
>
> ? ? ? ?Dodji
>
> commit 8b0213a76bc15754abc305faaa835fa14cc924a7
> Author: Dodji Seketeli <dodji@redhat.com>
> Date: ? Tue Mar 16 11:28:37 2010 +0100
>
> ? ?Draft fix for PR c++/43327
>
> ? ?gcc/cp/ChangeLog:
> ? ? ? ?PR c++/43327
> ? ? ? ?pt.c (add_to_template_args): Support NULL ARGS;
> ? ? ? ?(most_specialized_class): call coerce_template_parms on
> ? ? ? ?template arguments passed to get_class_bindings. Use
> ? ? ? ?add_to_template_args.
> ? ? ? ?(unify): Handle VAR_DECLs.
>
> ? ?gcc/testsuite/ChangeLog:
> ? ? ? ?PR c++/43327
> ? ? ? ?g++.dg/other/crash-10.C: New test.
> ? ? ? ?g++.dg/other/crash-11.C: New test.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43953
--
H.J.