This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix C++/21645, ICE in cxx_types_compatible_p
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 23 May 2005 13:07:56 -0400
- Subject: Re: [PATCH] Fix C++/21645, ICE in cxx_types_compatible_p
- References: <10980307f9a63a6f51bad346757c4ed8@physics.uc.edu> <42920D06.60505@codesourcery.com>
On May 23, 2005, at 1:04 PM, Mark Mitchell wrote:
Andrew Pinski wrote:
The problem here is that when we clone a function, we forget to copy
the correct type for the arguments so we get a crash when we copy
the body of the function as we are creating an INDIRECT_REF of a
record
type which is just wrong.
This patch updates the TYPE of the parameters before the copying
happens.
OK? Bootstrapped and tested on powerpc-darwin with no regressions.
To be clear: OK after the slush has melted.
Why, this breaks eon?
-- Pinski