[flang-commits] [flang] [flang] Fix bad attributes on type parameter symbols (PR #174870)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Thu Jan 8 08:48:10 PST 2026
================
@@ -6534,6 +6534,9 @@ void DeclarationVisitor::Post(const parser::DerivedTypeStmt &x) {
if (!paramNames.empty()) {
set_inPDTDefinition(true);
}
+ // Clear the attributes so that the attributes of the derived type
+ // (ABSTRACT, PUBLIC/PRIVATE, &c.) don't apply to the type's parameters.
+ EndAttrs(), BeginAttrs();
----------------
klausler wrote:
Do you not think that it makes the combination of operations more explicit?
https://github.com/llvm/llvm-project/pull/174870
More information about the flang-commits
mailing list