This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: inconsistent error reporting in g++
- To: Igor Sheyn <sheyn at cs dot bu dot edu>
- Subject: Re: inconsistent error reporting in g++
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 13 Jun 2000 21:47:35 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20000613184553.A10700@csa.bu.edu>
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