public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: William Schmidt <wschmidt@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/wschmidt/heads/builtins3)] libstdc++: Fix debug-mode build failure in <chrono> Date: Fri, 28 Aug 2020 19:59:30 +0000 (GMT) [thread overview] Message-ID: <20200828195930.3B85E383E82A@sourceware.org> (raw) https://gcc.gnu.org/g:1007170df82e330e4e222a14b4c74e0c8ebba6c5 commit 1007170df82e330e4e222a14b4c74e0c8ebba6c5 Author: Patrick Palka <ppalka@redhat.com> Date: Tue Aug 25 11:23:05 2020 -0400 libstdc++: Fix debug-mode build failure in <chrono> libstdc++-v3/ChangeLog: * include/std/chrono (year_month_weekday::ok): Fix assert. Diff: --- libstdc++-v3/include/std/chrono | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono index bf0d7e7af76..3cc1438a7b6 100644 --- a/libstdc++-v3/include/std/chrono +++ b/libstdc++-v3/include/std/chrono @@ -2613,7 +2613,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION days __d = (_M_wdi.weekday() - chrono::weekday{sys_days{_M_y / _M_m / 1}} + days((_M_wdi.index()-1)*7 + 1)); - __glibcxx_assert(__d >= 1); + __glibcxx_assert(__d.count() >= 1); return __d.count() <= unsigned{(_M_y / _M_m / last).day()}; }
reply other threads:[~2020-08-28 19:59 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200828195930.3B85E383E82A@sourceware.org \ --to=wschmidt@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).