https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101411

            Bug ID: 101411
           Summary: missing constraint in std::as_writable_bytes
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

The standard specifies in [views#span.objectrep-2]: "Constraints:
is_­const_­v<ElementType> is false."

#include <span>

int main() {
  std::as_writable_bytes(std::span<const int>{});
}

https://godbolt.org/z/orGxfTove

Reply via email to