This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Fix latent aliasing bug with composite derived types
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Oct 2009 01:28:20 +0100
- Subject: Re: [Ada] Fix latent aliasing bug with composite derived types
- References: <200910291932.08666.ebotcazou@adacore.com>
> 2009-10-29 Eric Botcazou <ebotcazou@adacore.com>
>
> * gcc-interface/decl.c (array_type_has_nonaliased_component): Swap
> parameters and rewrite comments. For a derived type, return the
> setting of its parent type.
> (gnat_to_gnu_entity): Do an alias set copy for derived types if they
> are composite. Adjust calls to above function.
This fixed PR ada/41870.
--
Eric Botcazou