This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for lto/45959 (trying to stream template_type_parm)
- 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: Tue, 28 Dec 2010 19:13:18 -0800
- Subject: Re: C++ PATCH for lto/45959 (trying to stream template_type_parm)
- References: <4CB310FA.2040200@redhat.com>
On Mon, Oct 11, 2010 at 6:28 AM, Jason Merrill <jason@redhat.com> wrote:
> This bug turned out to be caused by an INTEGER_CST which still had dependent
> type because tsubst_copy was assuming that it didn't need any modification;
> the first patch fixes that.
>
> While I was doing that, I thought that the default to just return t was
> pretty fragile and might cause other problems, so I changed it to abort by
> default. ?After fixing various places that shouldn't have been calling
> tsubst_copy in the first place, I only needed to add two more cases:
> OVERLOAD and PTRMEM_CST. ?This is the second patch.
>
This patch caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47022
--
H.J.