]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix internal error on 'Address of task component
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 31 Oct 2023 16:27:15 +0000 (17:27 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 21 Nov 2023 09:57:42 +0000 (10:57 +0100)
commit35510341fc24eed8fa3cd08171dc560b6d833fb2
tree1bfea3732fe6679667b9e369984a97c49205d47f
parent3827a017667532656285c9cf7f6448ff688221a9
ada: Fix internal error on 'Address of task component

This happens when the prefix of the selected component is of an access type,
i.e. there is an implicit dereference. because the prefix is not resolved.

gcc/ada/

* sem_attr.adb (Resolve_Attribute) <Attribute_Address>: Remove the
bypass for prefixes with task type.
gcc/ada/sem_attr.adb