Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/WaitforNew.cpp

    r45a091b rc86b08d  
    450450        );
    451451
    452         for ( const auto & [i, clause] : enumerate( waitfor->clauses ) ) {
     452        // For some reason, enumerate doesn't work here because of references.
     453        for ( size_t i = 0 ; i < waitfor->clauses.size() ; ++i ) {
    453454                theSwitch->cases.push_back(
    454455                        new ast::CaseClause( location,
     
    456457                                {
    457458                                        new ast::CompoundStmt( location, {
    458                                                 clause->stmt,
     459                                                waitfor->clauses[i]->stmt,
    459460                                                new ast::BranchStmt( location,
    460461                                                        ast::BranchStmt::Break,
     
    537538        ast::Stmt       * setter      = makeSetter( location, flag );
    538539
    539         for ( const auto & [i, clause] : enumerate( stmt->clauses ) ) {
    540                 init_clause( comp, acceptables, i, clause, setter );
     540        // For some reason, enumerate doesn't work here because of references.
     541        for ( size_t i = 0 ; i < stmt->clauses.size() ; ++i ) {
     542                init_clause( comp, acceptables, i, stmt->clauses[i], setter );
    541543        }
    542544
Note: See TracChangeset for help on using the changeset viewer.