[PATCH] D41223: [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 1 14:30:56 PST 2020


EricWF added a comment.

In D41223#1899394 <https://reviews.llvm.org/D41223#1899394>, @jtbandes wrote:

> The lack of `_LIBCPP_CONSTEXPR_AFTER_CXX14` on the `array<T, 0>` specialization's `begin()`, `end()`, and other methods seems to be a bug: https://stackoverflow.com/questions/60462569/empty-stdarrayt-0-doesnt-have-constexpr-begin


That bug is llvm.org/PR40124.

There are good reasons why it hasn't been fixed yet.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D41223/new/

https://reviews.llvm.org/D41223





More information about the cfe-commits mailing list