[flang-commits] [PATCH] D109933: [flang] Enforce fixed form rules about END continuation

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Sep 16 14:57:12 PDT 2021


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

>From subclause 6.3.3.5: a program unit END statement cannot be
continued in fixed form, and other statements cannot have initial
lines that look like program unit END statements.  I think this
is to avoid violating assumptions that are important to legacy
compilers' statement classification routines.


https://reviews.llvm.org/D109933

Files:
  flang/lib/Parser/prescan.cpp
  flang/lib/Parser/prescan.h
  flang/lib/Parser/token-sequence.cpp
  flang/lib/Parser/token-sequence.h
  flang/test/Parser/end.f

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109933.373083.patch
Type: text/x-patch
Size: 6138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210916/b2d1aa07/attachment.bin>


More information about the flang-commits mailing list