http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58163
--- Comment #3 from Paul Pluzhnikov <ppluzhnikov at google dot com> --- The fix: http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=7e66313066525b0ce38e140e6d9c815e19d119bf I don't believe the test is quite correct: +// { dg-options "-std=gnu++11 -D_GLIBCXX_DEBUG_PEDANTIC" } I don't get the assertion (pre-patch) unless I give *both* -D_GLIBCXX_DEBUG_PEDANTIC *and* -D_GLIBCXX_DEBUG