Skip to content

Commit 3174549

Browse files
committed
Name type to regain macOS 10.14.6 compatibility
Avoid (spurious) ambiguity by explicitly naming the type to be constructed. This seems to be required by the compiler shipped with macOS 10.14.6. Fixes: #7464
1 parent 014188e commit 3174549

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/solvers/smt2_incremental/smt_response_validation.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ validate_valuation_pair(
310310
smt_to_smt2_string(valid_descriptor.get_sort()) + "\nValue has sort " +
311311
smt_to_smt2_string(valid_value.get_sort())};
312312
}
313-
return resultt{{valid_descriptor, valid_value}};
313+
// see https://github.com/diffblue/cbmc/issues/7464 for why we explicitly name
314+
// the valuation_pairt type here:
315+
return resultt{
316+
smt_get_value_responset::valuation_pairt{valid_descriptor, valid_value}};
314317
}
315318

316319
/// \returns: A response or error in the case where the parse tree appears to be

0 commit comments

Comments
 (0)