diff options
author | Etienne Servais <servais@adacore.com> | 2022-02-02 15:18:29 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-11 08:53:20 +0000 |
commit | e6f7d5ff4f990c8f614c654353a3aa843f009349 (patch) | |
tree | 446a81f5d5a992e00cace7970525d27da20cbd5c /libgomp/task.c | |
parent | dc9ecb41c8572c53bdcd86e73526e2a27bd3dff9 (diff) | |
download | gcc-e6f7d5ff4f990c8f614c654353a3aa843f009349.zip gcc-e6f7d5ff4f990c8f614c654353a3aa843f009349.tar.gz gcc-e6f7d5ff4f990c8f614c654353a3aa843f009349.tar.bz2 |
[Ada] Do not create useless itype in Constrain_Access
In the case of a constrained access definition for a record component we
are calling create_itype twice the former not being updated. This leads
to a malformed node that crashes -gnatG when predicates are activated.
Instead of creating a default Itype for Desig_Subtype, create it with
the correct scope in each case.
gcc/ada/
* sem_ch3.adb (Constrain_Access): Call Desig_Subtype in each if
branch to avoid calling it twice.
Diffstat (limited to 'libgomp/task.c')
0 files changed, 0 insertions, 0 deletions