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:

> 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



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