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: cannot convert `int (*)()' to `void*' in initialization - should not be an error


"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


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