]> git.ipfire.org Git - people/ms/gcc.git/commit
[Ada] Internal error compiling formal instance of generic with Initial_Condition
authorSteve Baird <baird@adacore.com>
Tue, 30 Aug 2022 23:04:02 +0000 (16:04 -0700)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 12 Sep 2022 08:16:51 +0000 (10:16 +0200)
commitd917a68d6e4583e634557d651194d1abea850b61
tree9e62c9b5091d0dc56b756ba808924cb0f0cd1b95
parent4a7312f7ce189783a2cb5318bdcf50e8148b909d
[Ada] Internal error compiling formal instance of generic with Initial_Condition

Prevent the compiler from failing with an internal error in some cases involving
an instance of a generic which takes as a formal parameter an instance of a
second generic, where the second generic has an Initial_Condition aspect
specification.

gcc/ada/

* contracts.adb
(Analyze_Package_Contract): Do not analyze the contract of a
temporary package created just to check conformance of an actual
package.
gcc/ada/contracts.adb