Skip to content

<format>: all nans are "nan"#3001

Merged
StephanTLavavej merged 2 commits into
microsoft:mainfrom
CaseyCarter:format-nan
Aug 9, 2022
Merged

<format>: all nans are "nan"#3001
StephanTLavavej merged 2 commits into
microsoft:mainfrom
CaseyCarter:format-nan

Conversation

@CaseyCarter
Copy link
Copy Markdown
Contributor

@CaseyCarter CaseyCarter commented Aug 6, 2022

... per [format.string.std]/22.

Reported by Mark de Wever after we tried to break their perfectly good test with https://reviews.llvm.org/D131336.

@CaseyCarter CaseyCarter added bug Something isn't working format C++20/23 format labels Aug 6, 2022
@CaseyCarter CaseyCarter requested a review from a team as a code owner August 6, 2022 21:58
Comment thread stl/inc/format Outdated
Comment thread stl/inc/format Outdated
Comment thread stl/inc/format Outdated
Comment thread tests/std/tests/P0645R10_text_formatting_formatting/test.cpp
Comment thread tests/std/tests/P0645R10_text_formatting_formatting/test.cpp
@StephanTLavavej
Copy link
Copy Markdown
Member

Thanks - this looks correct to me, we have sufficient buffer size, and all codepaths appear to be modified/tested. I pushed really trivial changes since I had to find something. 😹

@mordante
Copy link
Copy Markdown
Contributor

mordante commented Aug 7, 2022

Thanks for the quick fix @CaseyCarter

Copy link
Copy Markdown
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @CaseyCarter
excited akko!

@StephanTLavavej StephanTLavavej self-assigned this Aug 9, 2022
@StephanTLavavej
Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit b1c4c50 into microsoft:main Aug 9, 2022
@StephanTLavavej
Copy link
Copy Markdown
Member

Thanks for fixing this bug! 🐞 🧮 😸

@CaseyCarter CaseyCarter deleted the format-nan branch August 9, 2022 16:27
fsb4000 pushed a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working format C++20/23 format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants