Changeset 2ad4b49 for src/ResolvExpr


Ignore:
Timestamp:
Jun 4, 2018, 4:29:23 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, with_gc
Children:
41770ed1, d885a58, f77dbc0
Parents:
1ddbf3b (diff), ee3c93d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r1ddbf3b r2ad4b49  
    207207                        Alternative & choice = winners.front();
    208208                        if ( findDeletedExpr( choice.expr ) ) {
    209                                 SemanticError( choice.expr, "Unique best alternative includes deleted identifier in " );
     209                                SemanticError( untyped->location, choice.expr, "Unique best alternative includes deleted identifier in " );
    210210                        }
    211211                        alt = std::move( choice );
     
    242242
    243243                static CastExpr untyped( nullptr ); // cast to void
     244                untyped.location = expr->location;
    244245
    245246                // set up and resolve expression cast to void
     
    274275        void findSingleExpression( Expression *& untyped, Type * type, const SymTab::Indexer & indexer ) {
    275276                assert( untyped && type );
     277                // transfer location to generated cast for error purposes
     278                CodeLocation location = untyped->location;
    276279                untyped = new CastExpr( untyped, type );
     280                untyped->location = location;
    277281                findSingleExpression( untyped, indexer );
    278282                removeExtraneousCast( untyped, indexer );
Note: See TracChangeset for help on using the changeset viewer.