]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Refine logic to set Needs_Activation_Record on subprogram types
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2018 08:57:11 +0000 (08:57 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2018 08:57:11 +0000 (08:57 +0000)
commit1ba841cfc7a4a8d09b6ae1127f1756f3c41b289b
tree03135074ed1d7327cd5b9f8fa522268ee535798c
parent66fc3c37a7ad29c7ec605375e3f26d388c7cb270
[Ada] Refine logic to set Needs_Activation_Record on subprogram types

2018-05-30  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch3.adb (Access_Subprogram_Declaration): The flag
Needs_Activation_Record is only needed on a subprogram type, not on a
pointer to such.
* sem_res.adb (Resolve_Selected_Component): If the context type and the
component type are anonymous access to subprograms, use the component
type to obtain the proper value of Needs_Activation_Record flag for the
expression.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260932 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/sem_ch3.adb
gcc/ada/sem_res.adb