3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5
Stephen M. Webb
stephen@bregmasoft.com
Mon Jun 4 13:19:00 GMT 2001
On Mon, 04 Jun 2001, Benjamin Kosnik wrote:
>
> May I propose that if
>
> libstdc++/2992
> libstdc++/2989
> libstdc++/2977
>
> remain unfixed by the end of the week, bogus workarounds can go in?
libstdc++/2989 is not a bug, so it can't be fixed.
The problem is that including <iostream> and <string.h> in the same source file
and then using a "using namespace std" directive causes a name conflict on
certain names introduced by the headers.
It's not a bug because standard headers are free to include other standard
headers. <iostream> is allowed to declare std::strcpy() indirectly through
including <cstring>. <string.h> declares ::strcpy().
The compiler is conformant in finding strcpy() ambiguous after a "using
namespace std" directive. The example program is malformed.
Stephen M. Webb
More information about the Libstdc++
mailing list