https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95851
Bug ID: 95851 Summary: [10/11 Regression] std::to_chars(p, p, c, 2) segfault Product: gcc Version: 10.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- The following has undefined behaviour, trying to write past the end of the range: #include <charconv> int main() { char c = 0; std::to_chars(&c, &c, c, 2); }