This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30928] add casts to libc overloads
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2010 17:23:47 -0000
- Subject: [Bug libstdc++/30928] add casts to libc overloads
- References: <bug-30928-6008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from paolo dot carlini at oracle dot com 2010-01-14 17:23 -------
It seems to me extremely unlikely that an implementation decides to provide the
full-const version when called by a c++ compiler and nothing else, because C++
does *not* add an overload, *replaces both*. Thus it seems definitely
premature.
About the unrelated point at the beginning, the const_cast in wcschr, that is
*essential* otherwise how can the forwarding to the *other* overload happen? We
can only remove it from the plain char overloads, which forwards to the
builtins.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30928