Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CurrentObject.cc

    r8f557161 r699a97d  
    689689
    690690                        auto arg = eval( expr );
    691                         assertf( arg.hasKnownValue, "Non-evaluable expression made it to IndexIterator" );
    692                         index = arg.knownValue;
     691                        index = arg.first;
    693692
    694693                        // if ( auto constExpr = dynamic_cast< const ConstantExpr * >( expr ) ) {
     
    729728                size_t getSize( const Expr * expr ) {
    730729                        auto res = eval( expr );
    731                         if ( !res.hasKnownValue ) {
     730                        if ( !res.second ) {
    732731                                SemanticError( location, toString( "Array designator must be a constant expression: ", expr ) );
    733732                        }
    734                         return res.knownValue;
     733                        return res.first;
    735734                }
    736735
Note: See TracChangeset for help on using the changeset viewer.