Debian Codegraph @

libstdc++-v3/testsuite/23_containers/span/117966.cc

raw
1 // { dg-options "-D_GLIBCXX_DEBUG" }
2 // { dg-do compile { target c++20 } }
3
4 // Bug 117966
5 // constexpr std::span construction fails to compile with D_GLIBCXX_DEBUG
6
7 #include <array>
8 #include <span>
9
10 struct A {
11 constexpr A(std::span<const unsigned char>) {}
12 };
13 constexpr A val{std::array<unsigned char, 2>{0x11, 0x22}};