This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/36283] When a class method, pointed by id, returns float, it returns wrong value
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2008 21:02:59 -0000
- Subject: [Bug objc/36283] When a class method, pointed by id, returns float, it returns wrong value
- References: <bug-36283-16200@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-05-20 21:02 -------
Actually I don't think this is a bug. What is happening is the id is a generic
class type so the compiler needs to decide at compile time what the type is
being returned. In this case it decides on the one the user did not want. The
cast will chose the correct one. Now at runtime is selects the correct type
but of course by the time you get there it is already messed up.
-- Pinski
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36283