https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92761
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't think this is a valid testcase, given: Both KeyId and Value may be non-trivial (non-POD) types provided a suitabe Traits class.