[Ada] Fix for internal error on semi-circular record aggregate
commitdfbdd4b9812b199a74dbb948b4eb54fb7bb30883
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 10 Feb 2022 11:37:56 +0000 (10 12:37 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:32 +0000 (19 14:05 +0000)
tree607ee7b249d4cc2b8e79fbcfccaac02c2a8a1f58
parent4d98c670fa97d203297f14ad270fd5d9e6f3f4d5
[Ada] Fix for internal error on semi-circular record aggregate

This creates a couple of record subtypes pointing to each other through
access subtypes, and we break the circularity at the latter subtypes.

gcc/ada/

* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Record_Subtype>: If
it is a special subtype designated by an access subtype, then defer
the completion of incomplete types.
gcc/ada/gcc-interface/decl.cc