https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56785
--- Comment #6 from Eelis <gcc-bugzilla at contacts dot eelis.net> --- Clang's libc++ (which gives the expected result) might be another source of inspiration.
gcc-bugzilla at contacts dot eelis.net Tue, 17 Jun 2014 10:03:13 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56785
--- Comment #6 from Eelis <gcc-bugzilla at contacts dot eelis.net> --- Clang's libc++ (which gives the expected result) might be another source of inspiration.