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: 30 May 1998 18:47:40 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <E0yfRix-0003u2-00@oak66.doc.ic.ac.uk>
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