projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ed3c0
)
libstdc++: Fix debug-mode build failure in <chrono>
author
Patrick Palka
<ppalka@redhat.com>
Tue, 25 Aug 2020 15:23:05 +0000
(11:23 -0400)
committer
Patrick Palka
<ppalka@redhat.com>
Tue, 25 Aug 2020 15:23:36 +0000
(11:23 -0400)
libstdc++-v3/ChangeLog:
* include/std/chrono (year_month_weekday::ok): Fix assert.
libstdc++-v3/include/std/chrono
patch
|
blob
|
history
diff --git
a/libstdc++-v3/include/std/chrono
b/libstdc++-v3/include/std/chrono
index bf0d7e7af76638ee8fdfd84c21398d443174d262..3cc1438a7b6242c82ddffe54f628717e3c7cb14d 100644
(file)
--- 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()};
}