]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/gcc-interface/decl.cc
[Ada] Fix internal error on unchecked union with component clauses (2)
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 2 Mar 2022 16:28:14 +0000 (17:28 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:33 +0000 (14:05 +0000)
commitdb6734819f777dbbf9eea464baa7fc60a953dc8a
tree86bc2e08f6b64f3920bfbc5723b0474e93705a54
parentb64c4968c7f3eb4c5ac0c56e6f11b10419dacd0c
[Ada] Fix internal error on unchecked union with component clauses (2)

The issue arises when the unchecked union contains both a fixed part and
a variant part, and is subject to a full representation clause covering
all the components in all the variants, when the component clauses do not
align the variant boundaries with byte boundaries consistently.

gcc/ada/

* gcc-interface/decl.cc (components_to_record): Use NULL recursively
as P_GNU_REP_LIST for the innermost variant level in the unchecked
union case with a fixed part.
gcc/ada/gcc-interface/decl.cc
This page took 0.055748 seconds and 5 git commands to generate.