public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/33935]  New: overloads in C headers
@ 2007-10-29  0:26 jsm28 at gcc dot gnu dot org
  2007-10-29  1:09 ` [Bug libstdc++/33935] " pcarlini at suse dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2007-10-29  0:26 UTC (permalink / raw)
  To: gcc-bugs

The C++ standard defines the C headers such as <string.h> and <wchar.h> in
terms of their C++ versions such as <cstring> and <cwchar>, which in turn are
defined in terms of the headers in the C standard.

Thus, <string.h> and <wchar.h> require the function overloads for functions
such as strchr and wcschr that are defined to be in <cstring> and <cwchar>. 
However, libstdc++ defines these only in <cstring> and <cwchar>, not in
<string.h> and <wchar.h>.

libstdc++ needs to wrap the headers provided by the C library, or otherwise
cooperate with glibc and other C library implementations, to get the required
C++ definitions in place.

This is different from bug 6257, and unlike that bug this one appears still to
be a bug with the current C++0x draft.


-- 
           Summary: overloads in C headers
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33935


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-33935-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-05-18 10:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-29  0:26 [Bug libstdc++/33935] New: overloads in C headers jsm28 at gcc dot gnu dot org
2007-10-29  1:09 ` [Bug libstdc++/33935] " pcarlini at suse dot de
2007-12-02 22:25 ` pinskia at gcc dot gnu dot org
2009-01-30 12:09 ` paolo dot carlini at oracle dot com
2010-01-14 20:47 ` paolo dot carlini at oracle dot com
     [not found] <bug-33935-4@http.gcc.gnu.org/bugzilla/>
2011-05-17 12:46 ` redi at gcc dot gnu.org
2011-05-18 10:55 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).