https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60976
--- Comment #35 from Jonathan Wakely <redi at gcc dot gnu.org> --- I've backported the std::allocator_traits<std::allocator<T>> partial specialization to the gcc-4.9 and gcc-5 branches now. Please let me know if this makes any difference for your use cases (and provide testcases to reproduce problems if not).