[Ada] Remove shadowing by a nested subprogram parameter
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 15 Oct 2020 08:45:28 +0000 (10:45 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 25 Nov 2020 13:22:44 +0000 (08:22 -0500)
commit7a17384884750622969e01b90344f6aa4fc9838c
tree924db35ff4a6b98a048df5dc8d3dc3cef26229b7
parentea89e1c31ec9c5fa68d6d963e7b40fca155377fd
[Ada] Remove shadowing by a nested subprogram parameter

gcc/ada/

* exp_ch8.adb (Expand_N_Exception_Renaming_Declaration): Move
"Nam" constant after the body of a nested subprogram; change "T"
from variable to constant.
gcc/ada/exp_ch8.adb