- File:
-
- 1 edited
-
src/ResolvExpr/AlternativeFinder.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
r4d2d45f9 rda6032af 258 258 // - necessary pre-requisite to pruning 259 259 AltList candidates; 260 std::list<std::string> errors;261 260 for ( unsigned i = 0; i < alternatives.size(); ++i ) { 262 resolveAssertions( alternatives[i], indexer, candidates , errors);261 resolveAssertions( alternatives[i], indexer, candidates ); 263 262 } 264 263 // fail early if none such 265 264 if ( mode.failFast && candidates.empty() ) { 266 265 std::ostringstream stream; 267 stream << "No alternatives with satisfiable assertions for " << expr << "\n"; 268 // << "Alternatives with failing assertions are:\n"; 269 // printAlts( alternatives, stream, 1 ); 270 for ( const auto& err : errors ) { 271 stream << err; 272 } 266 stream << "No resolvable alternatives for expression " << expr << "\n" 267 << "Alternatives with failing assertions are:\n"; 268 printAlts( alternatives, stream, 1 ); 273 269 SemanticError( expr->location, stream.str() ); 274 270 }
Note:
See TracChangeset
for help on using the changeset viewer.