Work around two problems with GCC 7.3.
One is its inability to implement "constexpr operator=(...) = default;"
in a class with a std::optional<> component; another is a legitimate-
looking warning about an unused variable.
Details
Details
- Reviewers
mstorsjo clementval - Commits
- rGe3b2f1b6823f: [flang] [NFC] Repair build with GCC 7.3
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM.
We experienced the bug in our CI on Summit and this patch fixes the problem for us. We test with GCC 7.5.
Comment Actions
Thanks! FWIW, the same issue also crops up if compiling with clang in an environment that uses libstdc++ from GCC 7 (i.e. building with clang on Ubuntu 18.04), I'll send a separate patch for fixing that.
Also note that building flang seems to fail entirely after D104167, see e.g. https://lab.llvm.org/buildbot/#/builders/132.
Comment Actions
This broke the flang bot: https://lab.llvm.org/buildbot/#/builders/21/builds/17760
Please provide fix or pull the patch to unblock the bot.
clang-tidy: warning: do not use 'else' after 'return' [llvm-else-after-return]
not useful