[all-commits] [llvm/llvm-project] b82a8c: [flang] Warn about useless explicit typing of intr...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Feb 17 13:14:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b82a8c3f231ebdd28f2b3b37142481eec3f43288
      https://github.com/llvm/llvm-project/commit/b82a8c3f231ebdd28f2b3b37142481eec3f43288
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/include/flang/Evaluate/characteristics.h
    M flang/include/flang/Semantics/expression.h
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Semantics/expression.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/badly-typed-intrinsic.f90
    M flang/test/Semantics/symbol18.f90

  Log Message:
  -----------
  [flang] Warn about useless explicit typing of intrinsics

Fortran 2018 explicitly permits an ignored type declaration
for the result of a generic intrinsic function.  See the comment
added to Semantics/expression.cpp for an explanation of why this
is somewhat dangerous and worthy of a warning.

Differential Revision: https://reviews.llvm.org/D96879




More information about the All-commits mailing list