llvm-project
4148d0b6 - [flang] Reject type bound procedure overrides with mismatched passed-object dummy names (#210876)

Commit
106 days ago
[flang] Reject type bound procedure overrides with mismatched passed-object dummy names (#210876) Fixes #206913 Issue: Flang wrongly accepts a type-bound procedure override when the implementing procedure uses a different dummy name than the parent deferred interface. Root cause: The PASS override check uses CanOverride, which compares dummy types but not dummy names for the passed-object argument. Fix: Check that dummy names match before CanOverride and report a clear error
Author
Parents
Loading