https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95629
Bug ID: 95629 Summary: consteval operator== crashes compiler Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tobias.bruell at gmail dot com Target Milestone: --- This also crashed in g++10 v10.1.0 for me. #include <type_traits> template<typename T> struct hana { template<typename U> consteval bool operator==(hana<U>) { return std::is_same_v<T, U>; } }; int main () { static_assert(hana<int>{} == hana<int>{}); }