[flang-commits] [flang] [flang] Improve intrinsic error messages when multiple signatures exist (PR #172099)
Andre Kuhlenschmidt via flang-commits
flang-commits at lists.llvm.org
Mon Dec 15 10:37:26 PST 2025
================
@@ -3597,8 +3597,13 @@ std::optional<SpecificCall> IntrinsicProcTable::Implementation::Probe(
// presence of DIM=, use messages from a later entry if
// the messages from an earlier entry complain about the
// DIM= argument and it wasn't specified with a keyword.
+ // Also prefer later messages when earlier ones are about
+ // argument count mismatches, as a later entry that accepts
+ // the right number of arguments will give more specific errors.
+ bool dominated{false};
----------------
akuhlens wrote:
Choose a more specific and descriptive variable name. Maybe something like`preferLaterError` or `isUnpreferedError`.
https://github.com/llvm/llvm-project/pull/172099
More information about the flang-commits
mailing list