[Ada] Fix internal error on semi-circular record types
commit795f74c735627f4215f18174e761c6b5b9098449
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 16 Feb 2022 17:07:26 +0000 (16 18:07 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:33 +0000 (19 14:05 +0000)
tree8614eae31119a6cae71e3fac624f5191a78614b8
parentdfbdd4b9812b199a74dbb948b4eb54fb7bb30883
[Ada] Fix internal error on semi-circular record types

The front-end properly computes a linear elaboration order for them, but
there was a loophole in the handling of the delayed case.

gcc/ada/

* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Access_Subtype>: And
skip the elaboration of the designated subtype when that of its base
type has been delayed.
gcc/ada/gcc-interface/decl.cc