[flang-commits] [flang] [flang] Accept C-style comments in label fields (PR #207012)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Thu Sep 17 15:46:02 PDT 2026


================
@@ -0,0 +1,22 @@
+! RUN: %flang_fc1 -fsyntax-only %s
----------------
eugeneepshteyn wrote:

Let's also test that mid-statement C comments stay rejected without preprocessing:

```fortran
      integer :: i
      i = 8 /* comment */
      end
```

This must remain an error here (it is today: `error: expected end of statement`), while the same line is accepted with `-cpp`.


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


More information about the flang-commits mailing list