]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix internal error on aspect in complex object declaration
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 22 Aug 2025 12:51:58 +0000 (14:51 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 15 Sep 2025 12:59:34 +0000 (14:59 +0200)
commitde0ae1b5103293bc07f35964c2b7da5edbe7eb3c
tree0da3b17d993f4b58bb13311494bfb4ae5a1ec68b
parent91b51fc42b167eedaaded6360c490a4306bc5c55
ada: Fix internal error on aspect in complex object declaration

The sufficient conditions are that the aspect be deferred and the object be
rewritten as a renaming because of the complex initialization expression.

gcc/ada/ChangeLog:

* gcc-interface/trans.cc (gnat_to_gnu)
<N_Object_Renaming_Declaration>: Deal with objects whose elaboration
is deferred.
(process_freeze_entity): Deal with renamed objects whose elaboration
is deferred.
gcc/ada/gcc-interface/trans.cc