This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/30928] add casts to libc overloads



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]