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]
Other format: [Raw text]

[Bug objc/36283] When a class method, pointed by id, returns float, it returns wrong value



------- 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


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