On Mon, Jan 2, 2012 at 3:24 AM, Paolo Carlini <paolo.carl...@oracle.com> wrote:
> On 01/02/2012 02:49 AM, Jason Merrill wrote:
>>
>> On 01/01/2012 08:10 PM, Paolo Carlini wrote:
>>>
>>> The analysis is confirmed by the fact that the rather heavy handed
>>> patchlet which I'm attaching, which uses copy_node to avoid the
>>> corruption, "works". How do we normally handle this kind of situation?
>>
>> In most cases, trees are unshared at instantiation time, but that doesn't
>> apply to constants like this.  The patch is OK.
>
> Oh I see, thanks. Then I'm going to properly test it, etc, and if everything
> goes well, I'll post what I will actually commit.

I think it's enough to call copy_node for CONSTANT_CLASS_P objects.

> Thanks again,
> Paolo.

Reply via email to