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

Reply via email to