(970929) reinterpret cast bug
Jason Merrill
jason@cygnus.com
Wed Oct 1 18:24:00 GMT 1997
>>>>> Mumit Khan <khan@xraylith.wisc.edu> writes:
> egcs snapshots don't like casting from "void *" to function pointers
> even with the old sledgehammer namely reinterpret_cast
Yep; the standard only allows for casting between function pointers, or
between object pointers. I assume this is to allow for targets where
addresses of code and data have different representations. No reason why
we can't allow it without -pedantic in g++, I suppose. Contributions
welcome.
Jason
More information about the Gcc-bugs
mailing list