[Bug libstdc++/58163] [C++11] Pedantic assert on str[str.size()] is wrong in C++11
ppluzhnikov at google dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 15 01:30:00 GMT 2013
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
More information about the Gcc-bugs
mailing list