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.0 regression] libstdc++ and strstr


On Wed, 16 May 2001, Loren James Rittle wrote:
> and it should fail but not for the current reason it fails. ;-)  It
> should fail because std::strstr is only supposed to be provided by
> <cstring> not <string>.  If we tweak that minor issue:
>
> #include <cstring>
>
> using namespace std;
>
> void f() {
>   strstr("aba","b");
> }
>
> It still fails exactly as you observed.  Unfortunately, this is a
> well-known problem of libstdc++-v3 and its direct use of ISO C89 (C99)
> headers.

Well, as far as I can see, this is a most serious problem and in fact a
showstopper for GCC 3.0!

I'll wait a bit, but early next week I'll add this as a high priority
report to our GNATS database.

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/


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