[all-commits] [llvm/llvm-project] 8d2361: [flang] Disallow NULL() as an expression where it ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Dec 2 14:37:11 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d23614a2926cbe972a97f9ffb59df723635ab80
      https://github.com/llvm/llvm-project/commit/8d23614a2926cbe972a97f9ffb59df723635ab80
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

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

  Log Message:
  -----------
  [flang] Disallow NULL() as an expression where it cannot appear

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

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




More information about the All-commits mailing list