Skip to content
  1. Mar 05, 2010
  2. Mar 04, 2010
  3. Mar 03, 2010
    • Douglas Gregor's avatar
      Implement disambiguation of base class members via a · f2a42a66
      Douglas Gregor authored
      nested-name-specifier. For example, this allows member access in
      diamond-shaped hierarchies like:
      
        struct Base {
          void Foo();
          int Member;
        };
      
        struct D1 : public Base {};
        struct D2 : public Base {};
      
        struct Derived : public D1, public D2 { }
      
        void Test(Derived d) {
          d.Member = 17; // error: ambiguous cast from Derived to Base
          d.D1::Member = 17; // error: okay, modify D1's Base's Member
        }
      
      Fixes PR5820 and <rdar://problem/7535045>. Also, eliminate some
      redundancy between Sema::PerformObjectMemberConversion() and
      Sema::PerformObjectArgumentInitialization() -- the latter now calls
      the former.
      
      llvm-svn: 97674
      f2a42a66
    • Fariborz Jahanian's avatar
      Fix code gen bug generating code for · 281aae63
      Fariborz Jahanian authored
      ((id)cat)->isa. Fixes radar 7709015.
      
      llvm-svn: 97672
      281aae63
Loading