Changeset 78d69da7 for src/SymTab


Ignore:
Timestamp:
Feb 20, 2018, 3:13:40 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
599fbb6
Parents:
b060aba
Message:

Fix build failure on gcc-4.9

Location:
src/SymTab
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.cc

    rb060aba r78d69da7  
    457457
    458458                // add to indexer
    459                 tables->idTable[ name ][ mangleName ] = { decl, baseExpr, deleteStmt };
     459                tables->idTable[ name ][ mangleName ] = IdData{ decl, baseExpr, deleteStmt };
    460460                ++tables->size;
    461461        }
  • src/SymTab/Indexer.h

    rb060aba r78d69da7  
    4646                        /// non-null if this declaration is deleted
    4747                        BaseSyntaxNode * deleteStmt = nullptr;
     48
     49                        // NOTE: shouldn't need either of these constructors, but gcc-4 does not properly support initializer lists with default members.
     50                        IdData() = default;
     51                        IdData( DeclarationWithType * id, Expression * baseExpr, BaseSyntaxNode * deleteStmt ) : id( id ), baseExpr( baseExpr ), deleteStmt( deleteStmt ) {}
    4852
    4953                        Expression * combine() const;
Note: See TracChangeset for help on using the changeset viewer.