From ab61fe41505c0dab8c05b3b6792454fc097b2999 Mon Sep 17 00:00:00 2001 From: Marek Kurdej Date: Wed, 13 May 2020 13:15:40 +0200 Subject: [PATCH] Revert "[libc++] [LWG3321] Mark "year_month_day_last::day() specification does not cover !ok() values" issue as "Nothing to do", but add assertion." This reverts commit e25a2601aaa95c861af3228982ecbb2b1c19d27a. It was failing due to _LIBCPP_ASSERT throwing in a method marked noexcept. --- libcxx/include/chrono | 2 -- libcxx/www/cxx2a_status.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libcxx/include/chrono b/libcxx/include/chrono index 9913dc1d06c9..6e5de398b72f 100644 --- a/libcxx/include/chrono +++ b/libcxx/include/chrono @@ -824,7 +824,6 @@ constexpr chrono::year operator ""y(unsigned lo */ #include <__config> -#include <__debug> #include #include #include @@ -2455,7 +2454,6 @@ chrono::day year_month_day_last::day() const noexcept chrono::day(31), chrono::day(31), chrono::day(30), chrono::day(31), chrono::day(30), chrono::day(31) }; - _LIBCPP_ASSERT(ok(), "year_month_day_last::day(): year_month_day_last is invalid"); return month() != February || !__y.is_leap() ? __d[static_cast(month()) - 1] : chrono::day{29}; } diff --git a/libcxx/www/cxx2a_status.html b/libcxx/www/cxx2a_status.html index bee06e652f6a..4b715e7a40f3 100644 --- a/libcxx/www/cxx2a_status.html +++ b/libcxx/www/cxx2a_status.html @@ -439,7 +439,7 @@ 3209Expression in year::ok() returns clause is ill-formedCologneComplete - 3231year_month_day_last::day specification does not cover !ok() valuesBelfastNothing to do + 3231year_month_day_last::day specification does not cover !ok() valuesBelfast 3225zoned_time converting constructor shall not be noexceptBelfast 3190std::allocator::allocate sometimes returns too little storageBelfast 3218Modifier for %d parse flag does not match POSIX and format specificationBelfast