Changeset 677c1be


Ignore:
Timestamp:
May 27, 2016, 3:32:57 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
10e81ac, 70f89d00, 83de11e
Parents:
2a7e29b
Message:

fix problem with chaining member access expressions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r2a7e29b r677c1be  
    385385
    386386        void Pass2::visit( StructDecl *structDecl ) {
     387                // visit struct members first so that the types of self-referencing members are updated properly
     388                Parent::visit( structDecl );
    387389                if ( ! structDecl->get_members().empty() ) {
    388390                        ForwardStructsType::iterator fwds = forwardStructs.find( structDecl->get_name() );
     
    394396                        } // if
    395397                } // if
    396                 Indexer::visit( structDecl );
    397398        }
    398399
    399400        void Pass2::visit( UnionDecl *unionDecl ) {
     401                Parent::visit( unionDecl );
    400402                if ( ! unionDecl->get_members().empty() ) {
    401403                        ForwardUnionsType::iterator fwds = forwardUnions.find( unionDecl->get_name() );
     
    407409                        } // if
    408410                } // if
    409                 Indexer::visit( unionDecl );
    410411        }
    411412
Note: See TracChangeset for help on using the changeset viewer.