This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: 3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5
- To: Benjamin Kosnik <bkoz at redhat dot com>,libstdc++ at gcc dot gnu dot org
- Subject: Re: 3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5
- From: Stephen M. Webb <stephen at bregmasoft dot com>
- Date: Mon, 4 Jun 2001 16:07:14 -0400
- Organization: CRYPTOCard Corporation
- References: <Pine.SOL.3.91.1010604123601.6456A-100000@taarna.cygnus.com>
- Reply-To: stephen at bregmasoft dot com
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