blob: 8bbb5ca1e079afa32b2f7b4921f5f15837198f88 [file] [log] [blame]
// { dg-options "-D_GLIBCXX_DEBUG" }
// { dg-do compile { target c++20 } }
// Bug 117966
// constexpr std::span construction fails to compile with D_GLIBCXX_DEBUG
#include <array>
#include <span>
struct A {
constexpr A(std::span<const unsigned char>) {}
};
constexpr A val{std::array<unsigned char, 2>{0x11, 0x22}};