https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97773
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #7) > N.B. your program has undefined behaviour. Specializing std::hash for > standard library types is forbidden. GCC shouldn't crash though. Oh, you didn't! I misread it, sorry.