This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++0x PATCH for c++/46129 (ICE with default argument in member class of template)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]