]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix detection of deferred constants for freezing error
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 12 May 2022 15:44:59 +0000 (17:44 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 2 Jun 2022 09:06:40 +0000 (09:06 +0000)
commitb25912a4138026ccbb1efd7b680075a0953ac074
treeecf3ad3c31e9e0fb706ae7345fb7dba36e3b03d3
parentcfd2262668862167cbe102ffbe87f127599be7a8
[Ada] Fix detection of deferred constants for freezing error

Testing Is_Frozen is not robust enough, so instead test that the full view
has been seen and that the Has_Completion flag is set on it.

gcc/ada/

* freeze.adb (Check_Expression_Function.Find_Constant): Make test
for deferred constants more robust.
gcc/ada/freeze.adb