[Ada] Error when passing subprogram'Access to null-defaulted formal subprogram
authorGary Dismukes <dismukes@adacore.com>
Wed, 10 Feb 2021 01:18:47 +0000 (20:18 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 15 Jun 2021 10:19:29 +0000 (06:19 -0400)
commit3d4fbcb4c98bc593e7e9ff7e0202d622d6c64f73
treea590dc97271431a21112e108594656786de918e2
parentd675f3528764107d70cc7e299419156aaa6f1e87
[Ada] Error when passing subprogram'Access to null-defaulted formal subprogram

gcc/ada/

* freeze.adb (Freeze_Subprogram): Don't propagate conventions
Intrinsic or Entry to anonymous access-to-subprogram types
associated with subprograms having those conventions. Update
related comment.
* sem_attr.adb (Resolve_Attribute, Attribute_*Access): Remove
special-case warning code for cases where a called subprogram
has convention Intrinsic as well as its formal's type (the
expected type for the Access attribute), since this case can no
longer occur.
gcc/ada/freeze.adb
gcc/ada/sem_attr.adb