[flang-commits] [PATCH] D146576: [flang] Reimplement C1406 check as a warning

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


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

Constraint C1406 in Fortran 2018 prohibits the USE of the same module  
name as both an intrinsic module and a non-intrinsic module in a scope.
The current check misinterprets the constraint as applying only to
explicitly INTRINSIC or NON_INTRINSIC module natures.

Change the check to also apply to non-explicit module natures, and
also downgrade it to a portability warning, since there is no ambiguity
and I suspect that we need to accept this usage when building f18's
own intrinsic modules.


https://reviews.llvm.org/D146576

Files:
  flang/docs/Extensions.md
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/modfile43.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146576.507146.patch
Type: text/x-patch
Size: 5226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230321/dac284fa/attachment-0001.bin>


More information about the flang-commits mailing list