This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Apparent bug in user defined type conversions
- To: njs3 at doc dot ic dot ac dot uk (Niall Smart)
- Subject: Re: Apparent bug in user defined type conversions
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 31 May 1998 19:53:21 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <E0yg8NR-0005lV-00@oak66.doc.ic.ac.uk>
Niall Smart <njs3@doc.ic.ac.uk> writes:
> Well, if it is going to provide a non-standard conversion operator then
> it should at least be used consistently.
Agreed, but it would be quite troublesome to find a C->unsigned* when
we're looking for a way to convert C->int*. I'd rather not even try
to do that. In fact, I don't think accepting an int* as an unsigned*,
even with a warning, is a good idea.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil