[flang-commits] [PATCH] D115735: [flang] Make f18 build with GCC 11.2.0 and with --std=c++20

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Dec 14 08:11:01 PST 2021


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert, mgorny.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

C++20 deprecates the implicit access to the value of "this" in
a lambda closure with "[=]"; rewrite some as "[this]" or "[=, this]".

Address a legitimate, but benign, warning about overindexing when
converting REAL(10) 80-bit x87 floating-point constants to host
long doubles (when available), which GCC pads out to 16 bytes.

Add an explicit no-op constructor to Fortran::parser::Verbatim.
(It has worked fine without one until now, but now it seems necessary.)

Builds were verified out-of-tree against LLVM built with GCC 9.3.0
in both shared and static library linkage modes.


https://reviews.llvm.org/D115735

Files:
  flang/CMakeLists.txt
  flang/include/flang/Parser/parse-tree.h
  flang/lib/Evaluate/check-expression.cpp
  flang/lib/Evaluate/host.h
  flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
  flang/lib/Semantics/resolve-names.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115735.394260.patch
Type: text/x-patch
Size: 8628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211214/e9571a39/attachment-0001.bin>


More information about the flang-commits mailing list