Skip to content
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

release/19.x: Guard an include of <ostream> in <chrono> with availability macro (#108429) #108515

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

llvmbot
Copy link
Collaborator

@llvmbot llvmbot commented Sep 13, 2024

Backport 127c349

Requested by: @var-const

@llvmbot llvmbot requested a review from a team as a code owner September 13, 2024 08:32
@llvmbot llvmbot added this to the LLVM 19.X Release milestone Sep 13, 2024
@llvmbot
Copy link
Collaborator Author

llvmbot commented Sep 13, 2024

@ldionne What do you think about merging this PR to the release branch?

@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Sep 13, 2024
@llvmbot
Copy link
Collaborator Author

llvmbot commented Sep 13, 2024

@llvm/pr-subscribers-libcxx

Author: None (llvmbot)

Changes

Backport 127c349

Requested by: @var-const


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

1 Files Affected:

  • (modified) libcxx/include/chrono (+1-1)
diff --git a/libcxx/include/chrono b/libcxx/include/chrono
index 990c415ec2e972..7bec5e5a26ef4a 100644
--- a/libcxx/include/chrono
+++ b/libcxx/include/chrono
@@ -1015,8 +1015,8 @@ constexpr chrono::year                                  operator ""y(unsigned lo
 #  include <charconv>
 #  if !defined(_LIBCPP_HAS_NO_LOCALIZATION)
 #    include <locale>
+#    include <ostream>
 #  endif
-#  include <ostream>
 #endif
 
 #endif // _LIBCPP_CHRONO

…llvm#108429)

This fixes a regression introduced in
llvm#96035.

(cherry picked from commit 127c349)
@tru tru merged commit 82f3a4a into llvm:release/19.x Sep 16, 2024
9 of 10 checks passed
Copy link

@var-const (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

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
Development

Successfully merging this pull request may close these issues.

4 participants