[flang-commits] [flang] [flang] Further refine errors vs warnings for ambiguous generics (PR #80161)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Thu Feb 1 08:18:16 PST 2024
klausler wrote:
> The changes looks good to me, but one thing is not clear to me: what happens when a call to a generic is later resolved and falls in these ambiguous cases? It will be an error at that point, right?
Yes, certainly. This patch is for the ambiguity checker that looks at declarations. For declarations in modules, this checking might help the programmer of a module guarantee that their clients will never get the per-reference ambiguity error; but a module that gets warnings about ambiguities might have clients that get errors.
https://github.com/llvm/llvm-project/pull/80161
More information about the flang-commits
mailing list