[flang-commits] [flang] [flang][semantics] Accept BOZ initializers for C enum values (PR #211904)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Mon Jul 27 16:50:02 PDT 2026
================
@@ -136,6 +136,12 @@ const Name &GetFirstName(const AccObject &x) {
[](const auto &y) -> const Name & { return GetFirstName(y); }, x.u);
}
+bool IsBOZLiteral(const ScalarIntConstantExpr &x) {
+ const Expr &expr{x.thing.thing.thing.value()};
----------------
eugeneepshteyn wrote:
`thing.thing.thing.value()` is used a couple of times in this PR. It's hard to unpack and it feels very fragile. Would it be possible to create a nice template helper that extracts the correct thing's value?
https://github.com/llvm/llvm-project/pull/211904
More information about the flang-commits
mailing list