[RFA] Fix an error in value_change_enclosing_type

muller@ics.u-strasbg.fr muller@ics.u-strasbg.fr
Sun Oct 20 14:55:00 GMT 2002


At 17:05 18/10/2002 -0400, Elena Zannoni wrote:
>Pierre Muller writes:
> > 
> > 
> > 
> > the function value_change_enclosing_type
> > does not set the enlclosing_type field correctly if
> > the new_encl_type has a bigger length that the value type.
> > 
> > Its seems quite astonishing that this has not been noticed before, 
> > but I discovered it when trying to get 
> > the fpc-abi.c code to work correctly.
> > 
>
>The fix seems OK. However, do you have a small testcase? It would be
>good to add it to the testsuite.
Sorry, but I don't have any, because I really don't even know
if this code is ever executed for C code. It is for
Free Pascal generated code, that is how I discovered that bug.
But I can't add tests with Free Pascal anyhow.

>Does this fix changes the results for the already existing tests?

Sorry, but I never worked with the testsuite,
so I can't answer this question.




More information about the Gdb-patches mailing list