https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99750
Bug ID: 99750 Summary: gcc allow operator literal operator have default parameters Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- constexpr auto operator""_s(const char*, unsigned long size = 2) { return size; } static_assert(operator""_s(nullptr) == 2); https://godbolt.org/z/x3YjPT8vd