https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111164
Bug ID: 111164 Summary: The error message for a literal operator accepting an argument of the wrong type is confusing Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- template<char...> int operator ""_x (); int x = "abc"_x; https://godbolt.org/z/aWjM3bx1j The error message given by GCC includes: <source>:4:9: note: expected a constant of type 'char', got 'char' This is paradoxical.