Skip to content

[libc++] Updates ostream's println LWG status. #128214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

mordante
Copy link
Member

@mordante mordante commented Feb 21, 2025

std::println was originally implemented with support for LWG4088 by mistake (in 2fd4084).
The tests already validate the behaviour required by LWG4088.

Fixes: #118348

This function has been inplemented non-conforming in
2fd4084. I missed the subtle issue
pointed out by
LWG4088 "println ignores the locale imbued in std::ostream"

The tests already validate the behaviour required by LWG4088.

Fixes: llvm#118348
@mordante mordante requested a review from a team as a code owner February 21, 2025 18:37
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Feb 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 21, 2025

@llvm/pr-subscribers-libcxx

Author: Mark de Wever (mordante)

Changes

This function has been inplemented non-conforming in 2fd4084. I missed the subtle issue pointed out by
LWG4088 "println ignores the locale imbued in std::ostream"

The tests already validate the behaviour required by LWG4088.

Fixes: #118348


Full diff: https://github.com/llvm/llvm-project/pull/128214.diff

1 Files Affected:

  • (modified) libcxx/docs/Status/Cxx2cIssues.csv (+1-1)
diff --git a/libcxx/docs/Status/Cxx2cIssues.csv b/libcxx/docs/Status/Cxx2cIssues.csv
index 1ec23dfabd5ea..7dee81a2ba065 100644
--- a/libcxx/docs/Status/Cxx2cIssues.csv
+++ b/libcxx/docs/Status/Cxx2cIssues.csv
@@ -90,7 +90,7 @@
 "`LWG4072 <https://wg21.link/LWG4072>`__","``std::optional`` comparisons: constrain harder","2024-11 (Wrocław)","","",""
 "`LWG4084 <https://wg21.link/LWG4084>`__","``std::fixed`` ignores ``std::uppercase``","2024-11 (Wrocław)","","",""
 "`LWG4085 <https://wg21.link/LWG4085>`__","``ranges::generate_random``'s helper lambda should specify the return type","2024-11 (Wrocław)","","",""
-"`LWG4088 <https://wg21.link/LWG4088>`__","``println`` ignores the locale imbued in ``std::ostream``","2024-11 (Wrocław)","","",""
+"`LWG4088 <https://wg21.link/LWG4088>`__","``println`` ignores the locale imbued in ``std::ostream``","2024-11 (Wrocław)","|Complete|","18",""
 "`LWG4112 <https://wg21.link/LWG4112>`__","``has-arrow`` should required ``operator->()`` to be ``const``-qualified","2024-11 (Wrocław)","","",""
 "`LWG4113 <https://wg21.link/LWG4113>`__","Disallow ``has_unique_object_representations<Incomplete[]>``","2024-11 (Wrocław)","","",""
 "`LWG4119 <https://wg21.link/LWG4119>`__","``generator::promise_type::yield_value(ranges::elements_of<R, Alloc>)``'s nested ``generator`` may be ill-formed","2024-11 (Wrocław)","","",""

@mordante mordante merged commit d7b3606 into llvm:main Feb 26, 2025
87 checks passed
@mordante mordante deleted the review/LWG4088 branch February 26, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LWG4088: println ignores the locale imbued in std::ostream
3 participants