[Bug libstdc++/59675] -D_GLIBCXX_DEBUG asserts to stdout (it should stderr)
jan.kratochvil at redhat dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 15 08:32:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59675
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
It needs also some new #include as otherwise one may get:
In file included from /usr/include/c++/4.8.2/bits/stl_algobase.h:59:0,
from /usr/include/c++/4.8.2/list:60,
from list.C:1:
/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h: In function ‘void
std::__replacement_assert(const char*, int, const char*, const char*)’:
/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h:2042:23: error:
‘stderr’ was not declared in this scope
__builtin_fprintf(stderr, "%s:%d: %s: Assertion '%s' failed.\n", __file,
^
More information about the Gcc-bugs
mailing list