[cfe-commits] r80446 - in /cfe/trunk: lib/AST/DeclCXX.cpp lib/Sema/SemaTemplateInstantiateDecl.cpp test/SemaTemplate/instantiate-member-initializers.cpp

Fariborz Jahanian fjahanian at apple.com
Tue Sep 1 14:35:57 PDT 2009


On Sep 1, 2009, at 2:18 PM, Eli Friedman wrote:

> On Tue, Sep 1, 2009 at 8:00 AM, Fariborz  
> Jahanian<fjahanian at apple.com> wrote:
>>
>> On Aug 31, 2009, at 11:41 PM, Eli Friedman wrote:
>>
>>> On Sun, Aug 30, 2009 at 11:15 AM, Fariborz Jahanian<fjahanian at apple.com 
>>> >
>>> wrote:
>>>>
>>>> On Aug 29, 2009, at 5:40 PM, Eli Friedman wrote:
>>>>
>>>>> On Sat, Aug 29, 2009 at 5:35 PM, Fariborz Jahanian<fjahanian at apple.com 
>>>>> >
>>>>> wrote:
>>>>>>
>>>>> We have to build the node because otherwise, there isn't  
>>>>> anywhere in
>>>>> the AST for the initializers to live.  In the dependent case,  
>>>>> yes, we
>>>>
>>>>
>> We keep it where it is. We just don't build it when processing  
>> templates. We
>> build it
>> when instantiating templates.
>
> Build what?  If we don't build BaseOrMemberInitializers, the
> initializers aren't in the AST, gone, forever!

We have list of base classes. We have list of template's
fields. In BaseOrMemberInitializers we have original, user
specified, list of constructor's initializers. I am talking about
building the ordered list of initializers, which can be
built as part of the instantiation.

- Fariborz

>
>
> -Eli




More information about the cfe-commits mailing list