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
* [Bug libstdc++/33935] overloads in C headers 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 ` pcarlini at suse dot de 2007-12-02 22:25 ` pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 7+ messages in thread From: pcarlini at suse dot de @ 2007-10-29 1:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pcarlini at suse dot de 2007-10-29 01:09 ------- Yes, in some sense the resolution of DR 456 doesn't consider strchr and co. Some time ago I mentioned that in private email with Howard but then didn't really pursue it. Will do, maybe at one of the next C++ meetings. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33935 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/33935] overloads in C headers 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 3 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-12-02 22:25 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2007-12-02 22:25 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-12-02 22:25:07 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33935 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/33935] overloads in C headers 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 3 siblings, 0 replies; 7+ messages in thread From: paolo dot carlini at oracle dot com @ 2009-01-30 12:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from paolo dot carlini at oracle dot com 2009-01-30 12:08 ------- This is really the same as libstdc++/30928. *** This bug has been marked as a duplicate of 30928 *** -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33935 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/33935] overloads in C headers 2007-10-29 0:26 [Bug libstdc++/33935] New: overloads in C headers jsm28 at gcc dot gnu dot org ` (2 preceding siblings ...) 2009-01-30 12:09 ` paolo dot carlini at oracle dot com @ 2010-01-14 20:47 ` paolo dot carlini at oracle dot com 3 siblings, 0 replies; 7+ messages in thread From: paolo dot carlini at oracle dot com @ 2010-01-14 20:47 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from paolo dot carlini at oracle dot com 2010-01-14 20:47 ------- Let's keep this one open instead, as a reminder that the libcs of non-GNU targets have to provide a mechanism similar to the one used by recent glibcs: http://gcc.gnu.org/viewcvs?view=revision&revision=143773 and which we can exploit in the C++ library. -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE | 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/>]
* [Bug libstdc++/33935] overloads in C headers [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 1 sibling, 0 replies; 7+ messages in thread From: redi at gcc dot gnu.org @ 2011-05-17 12:46 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33935 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-17 12:22:25 UTC --- *** Bug 49020 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/33935] overloads in C headers [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 1 sibling, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2011-05-18 10:55 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33935 --- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-18 10:08:22 UTC --- *** Bug 49020 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
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).