[all-commits] [llvm/llvm-project] 70bcd8: [libc++] Fix constexpr initialization of std::arra...

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Dec 15 13:06:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 70bcd81e7a7365d2fa98a2d08ba81305eb7846f1
      https://github.com/llvm/llvm-project/commit/70bcd81e7a7365d2fa98a2d08ba81305eb7846f1
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M libcxx/include/array
    M libcxx/test/std/concepts/concepts.lang/concept.default.init/default_initializable.compile.pass.cpp
    M libcxx/test/std/containers/sequences/array/array.cons/initialization.pass.cpp
    A libcxx/test/std/containers/sequences/array/size_and_alignment.compile.pass.cpp
    R libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp
    M libcxx/test/std/containers/views/mdspan/extents/CtorTestCombinations.h

  Log Message:
  -----------
  [libc++] Fix constexpr initialization of std::array<T, 0> (#74667)

This patch fixes constexpr default initialization of empty arrays and
improves the tests accordingly.

Fixes #74375




More information about the All-commits mailing list