]> git.ipfire.org Git - people/ms/gcc.git/commit
[Ada] Deal with derived record types in Has_Compatible_Representation
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 21 Mar 2022 07:35:53 +0000 (08:35 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:43 +0000 (08:25 +0000)
commitd678717ab233610588ae15fcddeb20b39ac7daf5
treeb6538731df5f29487a1f0e42bc774e8884803ccf
parente2f7d58cda63c8764b0c55f13ddee3c9b114182e
[Ada] Deal with derived record types in Has_Compatible_Representation

More precisely, untagged record types, as tagged record types are already
handled by the predicate.  If the derived type has not been given its own
representation clause, then the representations are the same.

gcc/ada/

* sem_ch13.adb (Has_Compatible_Representation): Return true for
derived untagged record types without representation clause.
gcc/ada/sem_ch13.adb