[flang-commits] [PATCH] D139047: [flang] Disallow NULL() as an expression where it cannot appear

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Nov 30 14:44:43 PST 2022


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

A NULL() pointer is generally not a valid expression (as opposed to
a variable) apart from some initialization contexts and some actual
arguments.


https://reviews.llvm.org/D139047

Files:
  flang/include/flang/Semantics/expression.h
  flang/lib/Semantics/expression.cpp
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/null01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139047.479076.patch
Type: text/x-patch
Size: 12269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221130/c3f7c1be/attachment.bin>


More information about the flang-commits mailing list