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

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to