[all-commits] [llvm/llvm-project] 7d147a: [flang] Warn on missing colons (C768)

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Dec 3 09:27:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d147a326331374e0af4d1d76a1cfb7faa8df0ad
      https://github.com/llvm/llvm-project/commit/7d147a326331374e0af4d1d76a1cfb7faa8df0ad
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-12-03 (Sat, 03 Dec 2022)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/lib/Parser/Fortran-parsers.cpp
    A flang/test/Parser/missing-colons.f90

  Log Message:
  -----------
  [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




More information about the All-commits mailing list