Skip to content

Commit

Permalink
Fix gcc 9 build
Browse files Browse the repository at this point in the history
Like in PR #463, this diff disables the static noexcept checks when
building with gcc 9 because that compiler seems to get the noexcept
calculations wrong.
  • Loading branch information
ispeters committed Oct 12, 2022
1 parent 6206cb2 commit 3248979
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/nest_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ TEST(nest_test, nest_of_v1_scope_invokes_member) {
unifex::sync_wait(scope.complete());
}

// gcc 9 fails to compute all the noexcept assertions in
// nest_has_the_expected_noexcept_clause
#if !defined(__GNUC__) || __GNUC__ > 9
struct throwing_sender final {
template <
template <typename...>
Expand Down Expand Up @@ -159,5 +162,6 @@ TEST(nest_test, nest_has_the_expected_noexcept_clause) {

unifex::sync_wait(v2scope.join());
}
#endif // !defined(__GNUC__) || __GNUC__ > 9

} // namespace

0 comments on commit 3248979

Please sign in to comment.