[PATCH] D89581: [flang] Disallow pointer constants

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 12:25:04 PDT 2020


PeteSteinfeld added a comment.

In D89581#2335561 <https://reviews.llvm.org/D89581#2335561>, @klausler wrote:

> Please add a comment that lays out our reasoning for the prohibition against combining PARAMETER and POINTER, since the standards do not explicitly preclude it.  (The PARAMETER attribute requires a entity-decl to have an initialization that is a constant-expr, and the only form of initialization that allows a constant-expr is the one that's not a "=>" pointer initialization.)  See C811, C807, & 8.5.13.

Thanks for the detailed reasoning.  I'll add a comment.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89581/new/

https://reviews.llvm.org/D89581



More information about the llvm-commits mailing list