cannot convert `int (*)()' to `void*' in initialization - should not be an error
Gabriel Dos Reis
Gabriel.Dos-Reis@cmla.ens-cachan.fr
Thu May 31 10:31:00 GMT 2001
"Stuehlmeyer, Wolfgang" <Wolfgang.Stuehlmeyer@softwareag.com> writes:
| Hello,
|
| 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)
That is right.
| No error messages with the gcc 2.95.2 or 2.95.3.
That was a bug.
If you really wantt to convert a funtion pointer to void*, you need an
explicit cast.
-- Gaby
More information about the Gcc-bugs
mailing list