inconsistent error reporting in g++
Alexandre Oliva
aoliva@redhat.com
Tue Jun 13 17:47:00 GMT 2000
On Jun 13, 2000, Igor Sheyn <sheyn@cs.bu.edu> wrote:
> I can understand this cast-related error, but how come g++ lets it go
> unreported in the 1st case?
I think it's because fold() eliminates the cond_expr, since it's value
can be known in advance. It probably shouldn't do it when the types
of the operands are different.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc-bugs
mailing list