public inbox for
help / color / mirror / Atom feed
* [gcc r13-4871] libstdc++: Remove problematic static_assert from src/c++20/
@ 2022-12-23  9:44 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-12-23  9:44 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

commit r13-4871-gdb3c5831f80e674b9ee77c1e9ca8364a72ca5758
Author: Jonathan Wakely <>
Date:   Fri Dec 23 09:19:38 2022 +0000

    libstdc++: Remove problematic static_assert from src/c++20/
    This assertion fails for cris-elf where sizeof(datetime) is only 7, due
    to lower alignment requirements. The assertion was used while I was
    writing the code to check that the objects were as compact as I wanted,
    but it doesn't need to be kept now.
            * src/c++20/ Remove static_assert.

 libstdc++-v3/src/c++20/ | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libstdc++-v3/src/c++20/ b/libstdc++-v3/src/c++20/
index a0bb03173a9..a02bcd4aec7 100644
--- a/libstdc++-v3/src/c++20/
+++ b/libstdc++-v3/src/c++20/
@@ -448,7 +448,6 @@ namespace std::chrono
       // This allows on_day to reuse padding of at_time.
       // This keeps the size to 8 bytes and the alignment to 4 bytes.
       struct datetime : at_time { on_day day; };
-      static_assert(sizeof(datetime) == 8 && alignof(datetime) == 4);
       // TODO combining name+letters into a single string (like in ZoneInfo)
       // would save sizeof(string) and make Rule fit in a single cacheline.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-23  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23  9:44 [gcc r13-4871] libstdc++: Remove problematic static_assert from src/c++20/ Jonathan Wakely

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).