KEMBAR78
[libc++] fix `array<T, 0>` under `USE_WRAP_ITER` by strega-nil · Pull Request #101156 · llvm/llvm-project · GitHub
Skip to content

Conversation

@strega-nil
Copy link
Contributor

array<T, 0>::iterator was always a pointer even when _LIBCXX_ABI_USE_WRAP_ITER_IN_STD_ARRAY was defined. This patch fixes that minor bug.

Discovered as part of #100603.

`array<T, 0>::iterator` was always a pointer even when
`_LIBCXX_ABI_USE_WRAP_ITER_IN_STD_ARRAY` was defined. This patch fixes
that minor bug.

Discovered as part of [llvm#100603][].

[llvm#100603]: llvm#100603
@strega-nil strega-nil requested a review from a team as a code owner July 30, 2024 09:30
all throughout the `array` header.
@cor3ntin cor3ntin added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Jul 30, 2024
Copy link
Member

@ldionne ldionne left a comment

Choose a reason for hiding this comment

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

Is that the reason we were introducing new broken test code without noticing?

Either way, thanks for fixing.

@strega-nil
Copy link
Contributor Author

@ldionne exactly :)

@strega-nil strega-nil merged commit d067062 into llvm:main Jul 30, 2024
@strega-nil strega-nil deleted the fix-array-iterator-wrapping branch July 30, 2024 18:24
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.

4 participants