[flang] Warn on missing colons (C768)
authorPeter Klausler <pklausler@nvidia.com>
Mon, 7 Nov 2022 23:51:03 +0000 (15:51 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Sat, 3 Dec 2022 17:27:39 +0000 (09:27 -0800)
commit7d147a326331374e0af4d1d76a1cfb7faa8df0ad
tree43344552d2b3a563095db82491ad1e13412eec3d
parent16a72a0f87487f2a07bb2a4101c79e4d311151a0
[flang] Warn on missing colons (C768)

In a derived type definition, a type bound procedure declaration
statement with neither interface nor attributes is required by constraint
C768 to have the optional "::" between the PROCEDURE keyword and the
bindings if any binding has a renaming with "=>".  The colons are
not actually necessary for a correct and unambiguous parse, so
emit a warning when they are missing.

Differential Revision: https://reviews.llvm.org/D139065
flang/docs/Extensions.md
flang/lib/Parser/Fortran-parsers.cpp
flang/test/Parser/missing-colons.f90 [new file with mode: 0644]