(Not So) Silly Objective-C inheritance problem when using property - GCC Bug?

后端 未结 4 1593
滥情空心
滥情空心 2020-12-05 15:40

Update - Many people are insisting I need to declare an iVar for the property. Some are saying not so, as I am using Modern Runtime (64 bit). I can confirm that I have bee

4条回答
  •  长情又很酷
    2020-12-05 16:27

    I just ran into that same problem but the sources were complex enough that I didn't quite understand what made iVar from the parent inaccessible when I used GCC. I only knew for sure that a few months ago and before changes in my code it worked and also that it is working with clang which I've been using for a while. Suddenly I had to build with GCC and it wouldn't anymore.

    At least this article gave me a bypass (declare the iVars). I am surprised that the latest version of XCode does not include a fixed compiler

提交回复
热议问题