]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Storage_Error on Ordered_Maps container aggregate with enumeration Key_Type
authorGary Dismukes <dismukes@adacore.com>
Fri, 21 Mar 2025 22:03:46 +0000 (22:03 +0000)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 10 Jun 2025 08:58:59 +0000 (10:58 +0200)
commit4aca5bc773ced42d006e07197e24462d0fa38a8f
tree9c034ef16508f34101cbdd7037168af926cc38db
parent8a4b72a2d99918d6bc315f2664a22457b9848ce7
ada: Storage_Error on Ordered_Maps container aggregate with enumeration Key_Type

The compiler fails with a Storage_Error when compiling a container aggregate
for a Map type coming from an instantiation of Ada.Containers.Ordered_Maps
that specifies an enumeration type for the Key_Type formal.

gcc/ada/ChangeLog:

* exp_aggr.adb (Build_Container_Aggr_Code.To_Int): Apply Enumeration_Pos
to Entity (Expr) rather than Expr.
gcc/ada/exp_aggr.adb