This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++0x PATCH for c++/46129 (ICE with default argument in member class of template)
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 22 Oct 2010 22:19:44 +0200
- Subject: Re: C++0x PATCH for c++/46129 (ICE with default argument in member class of template)
- References: <4CC1D80B.1050406@redhat.com>
On 10/22/2010 08:29 PM, Jason Merrill wrote:
> The testcase in this PR was causing an ICE because we were running
> tsubst on a default argument that had already been tsubsted. The bug
> turned out to be that the initial tsubst shouldn't have happened;
> default arguments in a template should not be instantiated until they
> are used.
Crazy, I was pretty sure we were already doing the right thing about this...
Paolo.