https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109459
Bug ID: 109459 Summary: static_assert with operator""s causes internal compiler error Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: stevenxia990430 at gmail dot com Target Milestone: --- The following program reports an internal compiler error: Segmentation fault To quickly reproduce: https://gcc.godbolt.org/z/T6E8Tb7ff ``` #include <string_view> #include <iostream> int main() { using namespace std::literals; int x = 0; static_assert(std::is_void_v<std::decay_t<decltype(x)>>, "Cannot process pair."s); return 0; } ``` Removing the operator""s removes the internal compiler error.