cstring include file #undef's too many macros

Bug #315099 reported by Morten Kjeldgaard
2
Affects Status Importance Assigned to Milestone
gcc-4.3 (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Intrepid by Morten Kjeldgaard

Bug Description

Binary package hint: gcc-4.3

 In the file /usr/include/c++/4.3/cstring, all the macros #include'd from <string.h> are #undef'd to replace them with functions. However, there aren't substitutes for all the undefined macros, specifically: strchr, strpbrk, strrchr and strstr.

Any program using these must include <string.h> directly, which defeats the purpose of the transition to <cstring>.

Binary package: libstdc++6-4.3-dev_4.3.2-1ubuntu11
Release: 8.10
Codename: intrepid

Haven't checked if this bug also affects jaunty.

Morten Kjeldgaard (mok0)
description: updated
Revision history for this message
Matthias Klose (doko) wrote :

cstring in gcc-4.3 in jaunty defines these functions.

Changed in gcc-4.3 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.