This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cannot convert `int (*)()' to `void*' in initialization - should not be an error
- To: "Stuehlmeyer, Wolfgang" <Wolfgang dot Stuehlmeyer at softwareag dot com>
- Subject: Re: cannot convert `int (*)()' to `void*' in initialization - should not be an error
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 31 May 2001 10:18:27 -0300
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <2B1792E820ACD411AD5A00508BF9A3FC369107@daemsg03.software-ag.de>
On May 31, 2001, "Stuehlmeyer, Wolfgang" <Wolfgang.Stuehlmeyer@softwareag.com> wrote:
> i get multiple error messages of type
> "cannot convert `int (*)()' to `void*' in assignment"
> and
> "cannot convert `int (*)()' to `void*' in initialization"
> with the gcc 3.0 Compiler. (gcc-3.0-20010517.tar.gz)
> No error messages with the gcc 2.95.2 or 2.95.3.
They were in error. GCC 3.0 is correct. C++ doesn't allow implicit
conversion from function types to void*.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me