[Ada] Fix analysis of iterated component expression with null range
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 7 Aug 2020 07:13:08 +0000 (09:13 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 21 Oct 2020 07:22:49 +0000 (03:22 -0400)
commit4270e94541bb865334849677b7c887c7eceb8353
tree47abf7e08f3d502222afe3289387eb3db5445c0e
parenta5476382a7f9a9732b1c0095cbd9cbc3ecd99edb
[Ada] Fix analysis of iterated component expression with null range

gcc/ada/

* exp_aggr.adb (Gen_Loop): Analyze copy of the expression in the
scope of the implicit loop with name of the index parameter
visible.
gcc/ada/exp_aggr.adb