[Bug c++/104699] zero-length-array is not considered as an array

2022-02-28 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104699 --- Comment #6 from qingzhe huang --- Really appreciate the detailed explanation! Very clear and completely convinced.

[Bug c++/104699] zero-length-array is not considered as an array

2022-02-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104699 --- Comment #5 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > GCC, Clang, Intel and MSVC all agree here: the int[0] type does not match > the X partial specialization. Although they don't agree for std::is_array, beca

[Bug c++/104699] zero-length-array is not considered as an array

2022-02-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104699 --- Comment #4 from Jonathan Wakely --- The std::is_array result is a consequence of the compiler not matching the is_array partial specialization for int[0]: using size_t = decltype(sizeof(0)); template struct X { static constexpr bool value =

[Bug c++/104699] zero-length-array is not considered as an array

2022-02-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104699 Jonathan Wakely changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug c++/104699] zero-length-array is not considered as an array

2022-02-26 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104699 qingzhe huang changed: What|Removed |Added CC||nickhuang99 at hotmail dot com --- Comm

[Bug c++/104699] zero-length-array is not considered as an array

2022-02-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104699 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|