[3.0 regression] libstdc++ and strstr
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Fri May 18 10:09:00 GMT 2001
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/
More information about the Gcc-bugs
mailing list