Skip to content

Commit

Permalink
more wa for gcc 14
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Sep 18, 2024
1 parent 789b8a2 commit 4ef8f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/initializer_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
static_assert(typename decltype(arr)::rank{} == 1);
}

#if !defined(__GNUC__) || (__GNUC__ < 14) // workaround bug in gcc 14.2
BOOST_AUTO_TEST_CASE(initializer_list_1d_a) {
multi::array arr({10, 20, 30});

Expand Down Expand Up @@ -412,6 +413,7 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
BOOST_TEST( num_elements(arr) == 6 );
}
}
#endif
#endif

BOOST_AUTO_TEST_CASE(partially_formed) {
Expand Down

0 comments on commit 4ef8f44

Please sign in to comment.