missing cast in bastring.h
Mark Mitchell
mark@codesourcery.com
Fri Apr 30 23:15:00 GMT 1999
>>>>> "Andrew" == Andrew Pimlott <pimlott@idiomtech.com> writes:
Andrew> I have
Andrew> gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2
Andrew> release)
Andrew> I get the error
Andrew> /usr/include/g++-2/std/bastring.h:301: return to `const
Andrew> FChar *' from `char *'
You are right that this is a bug.
Andrew> Something like the following is needed:
Nope; c_str () for a string with some type charT should return a
string of length one whose only element is `charT()'. This is fixed
in libstdc++-v3, FWIW.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-bugs
mailing list