]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix strange holes for type with variant part reported by -gnatRh
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Jun 2025 19:45:45 +0000 (21:45 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 3 Jul 2025 08:16:26 +0000 (10:16 +0200)
commit93d5053b1f3ab546808d81d1ef4955e448fb751b
tree45a6aec296657ca27ec2d68dabe1cf58f1fd0ae6
parentc58ef269c7a0461f8d2f751565ab58036410252a
ada: Fix strange holes for type with variant part reported by -gnatRh

The problem is that the sorting algorithm mixes components of variants.

gcc/ada/ChangeLog:

* repinfo.adb (First_Comp_Or_Discr.Is_Placed_Before): Return True
only if the components are in the same component list.
gcc/ada/repinfo.adb