[flang-commits] [flang] [flang][OpenMP] Reorganize ALLOCATE-related semantic checks (PR #165719)

Jack Styles via flang-commits flang-commits at lists.llvm.org
Fri Oct 31 08:38:43 PDT 2025


================
@@ -2503,7 +2503,7 @@ class UnparseVisitor {
     BeginOpenMP();
     Word("!$OMP ALLOCATE");
     Put(" (");
-    Walk(std::get<OmpObjectList>(x.t));
+    Walk(std::get<std::optional<OmpObjectList>>(x.t));
----------------
Stylie777 wrote:

Is it intended for unparsing to print `!$OMP ALLOCATE ()` for an empty object list, or should this be `!$OMP ALLOCATE`

https://github.com/llvm/llvm-project/pull/165719


More information about the flang-commits mailing list