[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
Sat Feb 3 16:59:07 PST 2018


EricWF added a comment.

In https://reviews.llvm.org/D41223#997264, @EricWF wrote:

> > and also test `{{}}` cases.
>
> I don't agree those cases are valid. That initialization syntax suggests there is something in the zero-sized array which is default constructible - or that users should be able to control construction of. I disagree with that.


Nevermind, I see STL is insisting that case be handled. I'll add tests and then complain to him later.


https://reviews.llvm.org/D41223





More information about the cfe-commits mailing list