This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: (970929) reinterpret cast bug
- To: Mumit Khan <khan at xraylith dot wisc dot edu>
- Subject: Re: (970929) reinterpret cast bug
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 06 Oct 1997 17:44:35 -0600
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199710012208.RAA06290@eh_pc11.xraylith.wisc.edu>you write:
> egcs snapshots don't like casting from "void *" to function pointers
> even with the old sledgehammer namely reinterpret_cast; eg., the following
> code doesn't work with any of the egcs snapshots (I've checked all the
> snapshots to date). Does work with 2.7.2*.
You should really avoid this -- on some systems it's not safe (HPPA,
some PPC variants).
Jeff