public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/112564] New: std::format(std::thread::id) is incorrectly left-aligned
@ 2023-11-16 10:38 blubban at gmail dot com
  2023-11-16 15:18 ` [Bug libstdc++/112564] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: blubban at gmail dot com @ 2023-11-16 10:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112564

            Bug ID: 112564
           Summary: std::format(std::thread::id) is incorrectly
                    left-aligned
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: blubban at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/zra9GddY3

N4964 [thread.thread.id]/12 "If the align option is omitted it defaults to >."
Both MSVC and libc++ right-align thread::id here as mandated by that paragraph,
but libstdc++ is left-aligning.

I am not sure how duration should be aligned by default but either libstdc++ or
libc++ are buggy here.


Found by https://github.com/StephanTLavavej

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-16 17:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 10:38 [Bug libstdc++/112564] New: std::format(std::thread::id) is incorrectly left-aligned blubban at gmail dot com
2023-11-16 15:18 ` [Bug libstdc++/112564] " redi at gcc dot gnu.org
2023-11-16 15:21 ` redi at gcc dot gnu.org
2023-11-16 15:21 ` redi at gcc dot gnu.org
2023-11-16 17:20 ` cvs-commit at gcc dot gnu.org
2023-11-16 17:21 ` redi at gcc dot gnu.org

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