[Ada] Incorrect accessibility checks on functions calls
authorJustin Squirek <squirek@adacore.com>
Mon, 30 Mar 2020 09:35:22 +0000 (05:35 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 15 Jun 2020 08:04:29 +0000 (04:04 -0400)
commitf142237e2f70fe336b4fbe02c8f10d60ab38df67
tree1504eb4e3c41a601afe024e712d2d96b6edb9d5d
parent50188982c8770e4f54b2be84eedceff9757b9760
[Ada] Incorrect accessibility checks on functions calls

2020-06-15  Justin Squirek  <squirek@adacore.com>

gcc/ada/

* sem_res.adb (Valid_Conversion): Add missing condition to
trigger proper static accessiblity failiures when the target
type is an anonymous access.
gcc/ada/sem_res.adb