[flang-commits] [flang] [flang] Fix crash on PARAMETER attribute applied to POINTER (PR #194885)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Fri May 1 07:48:11 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) ||
----------------
eugeneepshteyn wrote:
Recommend `IsPointer(symbol)` for slightly more readable code.
https://github.com/llvm/llvm-project/pull/194885
More information about the flang-commits
mailing list