Conversion problem with latest CVS

Alexandre Oliva oliva@lsd.ic.unicamp.br
Sun Oct 31 23:03:00 GMT 1999


On Oct 24, 1999, "Andrew Morton" <morton@nortelnetworks.com> wrote:

> Is this a bug?

> t.cc:6: cannot convert `const char[6]' to `char *' in assignment
> t.cc:7: cannot convert `const char *' to `char *' in assignment

Nope.  A string literal can be converted to `char*', for backward
compatibility, but the type of the result of the ?: expression is
`const char *', which can't be converted to `char *'.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them



More information about the Gcc-bugs mailing list