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