[flang-commits] [PATCH] D126416: [flang] Fix crash from a blank BIND(C, NAME="") on subprogram

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed May 25 13:38:03 PDT 2022


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

A recent change fixed the processing of BIND(C,NAME=expr) character
expressions so that they are evaluated as constants in the scope of
the subprogram.  However, when the character name expression results
in an empty value after trimming, the compiler emits a warning message,
and this message is now causing a crash due to a lack of statement
context.  To fix, extend the deferred processing of the BIND(C,NAME="")
so that a basic statement context exists.


https://reviews.llvm.org/D126416

Files:
  flang/lib/Semantics/resolve-names.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126416.432110.patch
Type: text/x-patch
Size: 4332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220525/8a700986/attachment.bin>


More information about the flang-commits mailing list