This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 3.1 Patch: Improve libstdc++-v3 for mips-sgi-irix6.5


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]