]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix internal error on unchecked union with component clauses
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 21 Dec 2021 23:02:15 +0000 (00:02 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 10 Jan 2022 09:38:46 +0000 (09:38 +0000)
commitcc9cd2324922575c1aa1eadf6340c2af47f011c4
treea8daaa44c852067e55632e0ba7dffe542f9124b4
parent0c6fbbfc83a8faefb74232cbb29fa1f79348b3e5
[Ada] Fix internal error on unchecked union with component clauses

gcc/ada/

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Fix
computation of boolean result in the unchecked union case.
(components_to_record): Rename MAYBE_UNUSED parameter to IN_VARIANT
and remove local variable of the same name.  Pass NULL recursively
as P_GNU_REP_LIST for nested variants in the unchecked union case.
gcc/ada/gcc-interface/decl.c