Index: src/ResolvExpr/CandidateFinder.cpp
===================================================================
--- src/ResolvExpr/CandidateFinder.cpp	(revision 64f3b9fefe9bf3caf101090443066ca16169610e)
+++ src/ResolvExpr/CandidateFinder.cpp	(revision 6b95febeb9e053e47da842259eeb662a3ecde74e)
@@ -1225,5 +1225,10 @@
 
 			// return casts are eliminated (merely selecting an overload, no actual operation)
-			candidates = std::move(finder.candidates);
+			for (auto & cand : finder.candidates) {
+				if (typesCompatibleIgnoreQualifiers(toType, cand->expr->result, cand->env)) {
+					candidates.push_back (cand);
+				}
+			}
+			// candidates = std::move(finder.candidates);
 			return;
 		}
