Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    rca946a4 r4b0f997  
    766766                        } // if
    767767                } // for
     768                // function may return struct or union value, in which case we need to add alternatives for implicit conversions to each of the anonymous members
     769                for ( const Alternative & alt : alternatives ) {
     770                        addAnonConversions( alt );
     771                }
    768772
    769773                candidates.clear();
     
    771775
    772776                findMinCost( candidates.begin(), candidates.end(), std::back_inserter( alternatives ) );
    773 
    774                 // function may return struct or union value, in which case we need to add alternatives for implicit
    775                 // conversions to each of the anonymous members, must happen after findMinCost since anon conversions
    776                 // are never the cheapest expression
    777                 for ( const Alternative & alt : alternatives ) {
    778                         addAnonConversions( alt );
    779                 }
    780777
    781778                if ( alternatives.empty() && targetType && ! targetType->isVoid() ) {
Note: See TracChangeset for help on using the changeset viewer.