[flang-commits] [flang] [flang] Allow C style comments in continuation lines (PR #214336)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Fri Aug 14 13:16:25 PDT 2026
eugeneepshteyn wrote:
Also, with baseline flang the following code warns with `-pedantic`:
```
integer :: i
i&
/* c */ = &
/* d */ 7
if (i /= 7) then
print *, 'error', i
else
print *, 'pass'
end if
end
```
Warning:
```
p06-inline-after-comment.f90:3:1: portability: nonstandard usage: C-style comment [-Wclassic-c-comments]
/* c */ = &
^
p06-inline-after-comment.f90:4:1: portability: nonstandard usage: C-style comment [-Wclassic-c-comments]
/* d */ 7
^
```
Does it still happen with the latest change?
https://github.com/llvm/llvm-project/pull/214336
More information about the flang-commits
mailing list