[Bug ada/117328] iterated component association fails for array with large index type

2024-11-12 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328

Eric Botcazou  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
   Target Milestone|--- |13.4
 Resolution|--- |FIXED

--- Comment #6 from Eric Botcazou  ---
Fixed on mainline, 14 and 13 branches.

[Bug ada/117328] iterated component association fails for array with large index type

2024-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328

--- Comment #5 from GCC Commits  ---
The releases/gcc-13 branch has been updated by Eric Botcazou
:

https://gcc.gnu.org/g:d6214b83e10d26bf116d4fca9de07a14cf4358cd

commit r13-9180-gd6214b83e10d26bf116d4fca9de07a14cf4358cd
Author: Eric Botcazou 
Date:   Wed Oct 30 11:22:12 2024 +0100

ada: Fix spurious error on iterated component association with large index
type

This is only for the Ada 2022 form of the iterated component association.

gcc/ada/ChangeLog:

PR ada/117328
* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use a type sized
from the index type to compute the length.  Simplify and remove
useless calls to New_Copy_Tree for this computation.

[Bug ada/117328] iterated component association fails for array with large index type

2024-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328

--- Comment #4 from GCC Commits  ---
The releases/gcc-14 branch has been updated by Eric Botcazou
:

https://gcc.gnu.org/g:4d1e1f947d5dade8474cb39516b60422bcc3c245

commit r14-10923-g4d1e1f947d5dade8474cb39516b60422bcc3c245
Author: Eric Botcazou 
Date:   Wed Oct 30 11:22:12 2024 +0100

ada: Fix spurious error on iterated component association with large index
type

This is only for the Ada 2022 form of the iterated component association.

gcc/ada/ChangeLog:

PR ada/117328
* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use a type sized
from the index type to compute the length.  Simplify and remove
useless calls to New_Copy_Tree for this computation.

[Bug ada/117328] iterated component association fails for array with large index type

2024-11-12 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328

--- Comment #3 from Eric Botcazou  ---
https://gcc.gnu.org/g:d34069c3ffaac95ba880ba12de26972bc3fb91b8

commit r15-5160-gd34069c3ffaac95ba880ba12de26972bc3fb91b8
Author: Eric Botcazou 
Date:   Wed Oct 30 11:22:12 2024 +0100

ada: Fix spurious error on iterated component association with large index
type

This is only for the Ada 2022 form of the iterated component association.

gcc/ada/ChangeLog:

* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use a type sized
from the index type to compute the length.  Simplify and remove
useless calls to New_Copy_Tree for this computation.

[Bug ada/117328] iterated component association fails for array with large index type

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328

Eric Botcazou  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |ebotcazou at gcc dot 
gnu.org
 Status|NEW |ASSIGNED

--- Comment #2 from Eric Botcazou  ---
Investigating.

[Bug ada/117328] iterated component association fails for array with large index type

2024-10-29 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328

Eric Botcazou  changed:

   What|Removed |Added

Summary|Iterated component  |iterated component
   |association fails for array |association fails for array
   |indexed by  |with large index type
   |Stream_Element_Offset   |
 CC||ebotcazou at gcc dot gnu.org
 Ever confirmed|0   |1
   Last reconfirmed||2024-10-29
 Status|UNCONFIRMED |NEW

--- Comment #1 from Eric Botcazou  ---
> but if the current declaration of type Integers is replaced by the
> commented-out one below it, compilation succeeds.

And fails again after s/Integer/Long_Integer/ for the index type. Strange.