[flang-commits] [flang] [flang] Fix crash on PARAMETER attribute applied to POINTER (PR #194885)
Caroline Newcombe via flang-commits
flang-commits at lists.llvm.org
Fri May 1 10:41:32 PDT 2026
================
@@ -5904,7 +5893,8 @@ bool DeclarationVisitor::Pre(const parser::NamedConstantDef &x) {
auto &symbol{HandleAttributeStmt(Attr::PARAMETER, name)};
ConvertToObjectEntity(symbol);
auto *details{symbol.detailsIf<ObjectEntityDetails>()};
- if (!details || symbol.test(Symbol::Flag::CrayPointer) ||
+ if (!details || symbol.attrs().test(Attr::POINTER) ||
----------------
cenewcombe wrote:
Done, thanks!
https://github.com/llvm/llvm-project/pull/194885
More information about the flang-commits
mailing list