[flang-commits] [flang] [flang][parser] handle semicolons uniformly in program unit constructs (PR #181180)
Andre Kuhlenschmidt via flang-commits
flang-commits at lists.llvm.org
Thu Feb 12 09:20:38 PST 2026
================
@@ -91,8 +91,9 @@ TYPE_PARSER(
"nonstandard usage: empty source file"_port_en_US,
skipStuffBeforeStatement >> consumedAllInput >>
pure<std::list<ProgramUnit>>()) ||
- some(globalCompilerDirective || globalOpenACCCompilerDirective ||
- normalProgramUnit) /
+ some(skipStuffBeforeStatement >> (globalCompilerDirective ||
----------------
akuhlens wrote:
No, not really, but `skipStuffBeforeStatement` is directive aware seeing as it skips some compiler directives and leaves others alone. Do you have a specific case you are thinking of?
https://github.com/llvm/llvm-project/pull/181180
More information about the flang-commits
mailing list