Apparent bug in user defined type conversions

Alexandre Oliva oliva@dcc.unicamp.br
Sat May 30 14:57:00 GMT 1998


Niall Smart <njs3@doc.ic.ac.uk> writes:

> So, this code shouldn't compile:

> void foo(unsigned int*);
> int main() { int x; foo(&x); }

A diagnostic (like the warning message printed by gcc and egcs) is
required, but actually rejecting the code or not is up to the compiler
implementor.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list