sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null indicator, indicate...
authorEd Schonberg <schonberg@adacore.com>
Tue, 29 Mar 2005 16:21:32 +0000 (18:21 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 29 Mar 2005 16:21:32 +0000 (18:21 +0200)
commit2813bb6b356e37af272d5ce279d0fdddc794e34f
treed54b5ee5ac14be2f30051dc60ff8454a94566bcf
parent981234802e8314987fc1e9c6b9594462bb5aa0f4
sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null indicator, indicate that the formal can never be null.

2005-03-29  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
indicator, indicate that the formal can never be null.
(Process_Formals): If a formal has a non_null indicator, insert the
resulting subtype immediately before the enclosing subprogram decl,
and not at the beginning of the corresponding declarative part, to
prevent access before elaboration (Ada2005).

From-SVN: r97185
gcc/ada/sem_ch6.adb