[flang-commits] [flang] [FLANG][Lower] WIP Support for BOZ assigning into a variable (PR #96651)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Jun 25 08:52:33 PDT 2024


klausler wrote:

> If lowering has the guarantee that the "evaluate::Boz" it sees in evaluate::Expr must be always converted to integers, this makes sense, but I wonder if semantic should not be rewriting the Boz here based on the context as it is done in other cases. @klausler, is there a reason the BOZ is not converted in this case? Is it safe to assume all leftover BOZ literal constants can be dealt as INTEGER(16)?

Semantics should report an error here, actually.  A BOZ literal can't appear here.

https://github.com/llvm/llvm-project/pull/96651


More information about the flang-commits mailing list