Ignore:
Timestamp:
Jun 1, 2024, 5:13:42 PM (7 weeks ago)
Author:
Fangren Yu <f37yu@…>
Branches:
master
Children:
83b2fb5e, d68de59
Parents:
822332e
Message:

attempt to fix #286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r822332e r0f5e8cd  
    11961196                        // return casts are eliminated (merely selecting an overload, no actual operation)
    11971197                        candidates = std::move(finder.candidates);
    1198                 }
    1199                 finder.find( castExpr->arg, ResolveMode::withAdjustment() );
     1198                        return;
     1199                }
     1200                else if (toType->isVoid()) {
     1201                        finder.find( castExpr->arg ); // no adjust
     1202                }
     1203                else {
     1204                        finder.find( castExpr->arg, ResolveMode::withAdjustment() );
     1205                }
    12001206
    12011207                if ( !finder.candidates.empty() ) reason.code = NoMatch;
Note: See TracChangeset for help on using the changeset viewer.