This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [3.0 regression] libstdc++ and strstr
- To: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Subject: Re: [3.0 regression] libstdc++ and strstr
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Fri, 18 May 2001 19:03:04 +0200 (CEST)
- cc: <gcc-bugs at gcc dot gnu dot org>, <libstdc++ at gcc dot gnu dot org>
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/