Closed sgn closed 1 year ago
With this change, everything is fine.
--- a/tests/test_unordered_set.cpp
+++ b/tests/test_unordered_set.cpp
@@ -65,8 +65,8 @@ TEST_CASE("tripleton str frozen unordere
constexpr auto max_size = ze_set.max_size();
REQUIRE(max_size == 3);
- constexpr auto nocount = ze_set.count(4);
+ auto nocount = ze_set.count(4);
REQUIRE(nocount == 0);
constexpr auto count = ze_set.count(1);
REQUIRE(count == 1);
In my opinion, count
doesn't modify ze_set
in anyway :|
Yeah, it doesn't make sense to me either... and the compile trace doesn't help either. Do you have the same issue with 12.3 and later?
I've added extra CI in #162 and it seems to work with gcc 12.3: https://github.com/serge-sans-paille/frozen/actions/runs/5995811497/job/16259393963?pr=162
It's actually a gcc a bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158 12.3.0 upstream still is affected, but I suppose Ubuntu cherry-picks the patch mentioned in the bug report.
I have no clue why it run into this failure!