f18 icon indicating copy to clipboard operation
f18 copied to clipboard

clang++ and libstdc++ 9 build failure

Open DavidTruby opened this issue 5 years ago • 2 comments

std::get for std::variant in libstdc++ 9 is erroneously marked noexcept in one place and not marked somewhere else in the same header. GCC allows this but clang does not as the standard forbids it.

This has been fixed upstream so won't be a problem in libstdc++ 10. However I don't think there's an easy workaround for this, so possibly we just need to specify in the Readme that this combination of compiler and standard library won't work.

DavidTruby avatar Sep 30 '19 14:09 DavidTruby

Here's the upstream libstdc++ bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397

DavidTruby avatar Sep 30 '19 15:09 DavidTruby

#1059 has fixed this problem for us. :-)

RichBarton-Arm avatar Mar 13 '20 11:03 RichBarton-Arm