This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Apparent bug in user defined type conversions


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]