I just noticed the bug report below. Our implementation fails the supplied test case just like (apparently) libstc++ must. It would be good to look into it and open an issue if it is in fact a bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26133