Conversion problem with latest CVS

Alexandre Oliva
Sun Oct 31 23:03:00 GMT 1999

On Oct 24, 1999, "Andrew Morton" <> wrote:

> Is this a bug?

> cannot convert `const char[6]' to `char *' in assignment
> 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 IC-Unicamp, Bra[sz]il
oliva@{,guarana.{org,com}} aoliva@{acm,computer}.org
** I may forward mail about projects to mailing lists; please use them

More information about the Gcc-bugs mailing list