[cfe-commits] r104281 - in /cfe/trunk: lib/CodeGen/CGExprCXX.cpp test/CodeGenObjC/objc-gc-aggr-assign.m

Fariborz Jahanian fjahanian at apple.com
Thu May 20 16:41:29 PDT 2010


On May 20, 2010, at 3:33 PM, Douglas Gregor wrote:

>
> On May 20, 2010, at 3:12 PM, Fariborz Jahanian wrote:
>
>>
>> On May 20, 2010, at 2:44 PM, Douglas Gregor wrote:
>>
>>>
>>>
>>>
>>> Also, it looks like the HasObjectMember bit isn't propagated from  
>>> base classes to derived classes, e.g.,
>>>
>>> struct Base {
>>>  NSObject *object;
>>> };
>>>
>>> struct Derived : Base { }; // won't have HasObjectMember bit set?
>>
>> This is a valid point. g++ does not do this; neither does clang. I  
>> will bring it up with the group.
>> It is probably harmless to add.
>
>
> Personally, I view this as a g++ and clang++ bug: there's clearly a  
> pointer to an Objective-C object in that memory, so we should be  
> telling the runtime about it. Let's fix it in Clang.
Done in r104296

- Fariborz

>
>
> 	- Doug




More information about the cfe-commits mailing list