[flang][NFC] Add a no-arg constructor for `Verbatim`.
authorSamira Bazuzi <bazuzi@google.com>
Mon, 5 Dec 2022 15:30:29 +0000 (07:30 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 5 Dec 2022 15:30:30 +0000 (07:30 -0800)
commit6e08ac8dce919c7497876d36a04a05ffc52d0e93
tree9fb8b2a8ff03874684dce168e6e7e593f88d4a56
parenteefd0858431e13fa81a8ec3e579251aacb957a32
[flang][NFC] Add a no-arg constructor for `Verbatim`.

In C++20, types that declare or delete any constructors are no longer aggregates, breaking compilation of many existing uses of aggregate initialization.

Although `Verbatim` declares itself to not have a no-arg default constructor, this is circumvented in `basic-parsers.h` which returns a `RESULT{}` a.k.a. `Verbatim{}`. Adding the no-arg constructor while still deleting the copy/assignment constructors maintains the current state and also supports eventually building this in c++20 mode.

Fix suggested in https://discourse.llvm.org/t/build-failure-when-attempting-to-build-flang-with-c-20/66953.

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D139228
flang/include/flang/Parser/parse-tree.h