[flang-commits] [PATCH] D146586: [flang] Settle ambiguity between C795 and C721

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Mar 21 15:17:23 PDT 2023


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

C721 says that a type parameter value of '*' is permitted in the type-spec
for a named constant; C795 says that such type parameters are allowed
in type-specs only for a few kinds of things, not including named
constants.  The interpretation seems to depend on context, with C721
applying to intrinsic types (i.e., character) and C795 applying only
to derived types.


https://reviews.llvm.org/D146586

Files:
  flang/lib/Semantics/check-declarations.cpp
  flang/test/Semantics/call05.f90
  flang/test/Semantics/call31.f90
  flang/test/Semantics/resolve73.f90
  flang/test/Semantics/resolve74.f90
  flang/test/Semantics/resolve75.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146586.507155.patch
Type: text/x-patch
Size: 8677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230321/70d66316/attachment-0001.bin>


More information about the flang-commits mailing list