[flang-commits] [PATCH] D96879: [flang] Warn about a useless explicit typing of intrinsics

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Feb 17 10:27:32 PST 2021


klausler created this revision.
klausler added a reviewer: tskeith.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.

Depends on https://reviews.llvm.org/D96878


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96879

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96879.324350.patch
Type: text/x-patch
Size: 9407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210217/03f2fe79/attachment.bin>


More information about the flang-commits mailing list