This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc bug: convert_move -O3
- From: Brian Dessent <brian at dessent dot net>
- To: Cygwin List <cygwin at cygwin dot com>
- Date: Thu, 30 Jun 2005 09:11:37 -0700
- Subject: Re: gcc bug: convert_move -O3
- References: <42C3A0F8.10906@x-ray.at>
- Reply-to: cygwin at cygwin dot com
Reini Urban wrote:
> num = ((*((float (*)()) hack30_pray))(ax,items,symref));
I'm no language lawyer but this seems invalid. I seem to recall
discussion on one of the gcc lists about trying to cast a function
pointer from one function signature to another, and how it was not
defined/supported. The code here should cast the return value, not try
to cast the function itself.
In any case, this should not ICE so you should file a gcc PR.
Brian
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/