All constant expressions are non-potentially-throwing in C++14, but that is *not* the case in C++17. Change these variant tests to expect the correct behavior when the compiler is not GCC or is GCC 9+.
Fixes #41578.
Differential D61033
[libc++][test] Fix noexcept assertions in variant's get tests CaseyCarter on Apr 23 2019, 11:39 AM. Authored by
Details All constant expressions are non-potentially-throwing in C++14, but that is *not* the case in C++17. Change these variant tests to expect the correct behavior when the compiler is not GCC or is GCC 9+. Fixes #41578.
Diff Detail
Event TimelineComment Actions Update conditional: the bug was closed as a duplicate of a bug which has been fixed on master. Tag with the correct bug number, and disable the workaround for GCC 9. Comment Actions I added a patch to https://bugs.llvm.org/show_bug.cgi?id=41578 that fixes it differently.
|
You've got some copy-pasta here. 0 should be 1