Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r93401f8 rc71b256  
    1010// Created On       : Sat May 16 23:52:08 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Feb 17 11:19:39 2018
    13 // Update Count     : 33
     12// Last Modified On : Mon Aug 28 13:47:24 2017
     13// Update Count     : 32
    1414//
    1515
     
    239239                                std::cerr << "No reasonable alternatives for expression " << expr << std::endl;
    240240                        )
    241                         throw SemanticError( expr, "No reasonable alternatives for expression " );
     241                        throw SemanticError( "No reasonable alternatives for expression ", expr );
    242242                }
    243243                if ( prune ) {
     
    255255                                stream << "Cannot choose between " << winners.size() << " alternatives for expression\n";
    256256                                expr->print( stream );
    257                                 stream << " Alternatives are:\n";
     257                                stream << "Alternatives are:\n";
    258258                                printAlts( winners, stream, 1 );
    259                                 throw SemanticError( expr->location, stream.str() );
     259                                throw SemanticError( stream.str() );
    260260                        }
    261261                        alternatives = move(pruned);
     
    494494                                return;
    495495                        } else if ( level >= recursionLimit ) {
    496                                 throw SemanticError( newAlt.expr->location, "Too many recursive assertions" );
     496                                throw SemanticError( "Too many recursive assertions" );
    497497                        } else {
    498498                                AssertionSet newerNeed;
     
    14081408                        findMinCost( finder.alternatives.begin(), finder.alternatives.end(), back_inserter( winners ) );
    14091409                        if ( winners.size() != 1 ) {
    1410                                 throw SemanticError( sizeofExpr->get_expr(), "Ambiguous expression in sizeof operand: " );
     1410                                throw SemanticError( "Ambiguous expression in sizeof operand: ", sizeofExpr->get_expr() );
    14111411                        } // if
    14121412                        // return the lowest cost alternative for the argument
     
    14291429                        findMinCost( finder.alternatives.begin(), finder.alternatives.end(), back_inserter( winners ) );
    14301430                        if ( winners.size() != 1 ) {
    1431                                 throw SemanticError( alignofExpr->get_expr(), "Ambiguous expression in alignof operand: " );
     1431                                throw SemanticError( "Ambiguous expression in alignof operand: ", alignofExpr->get_expr() );
    14321432                        } // if
    14331433                        // return the lowest cost alternative for the argument
Note: See TracChangeset for help on using the changeset viewer.