sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram renaming declaration...
authorEd Schonberg <schonberg@adacore.com>
Thu, 13 Dec 2007 10:29:52 +0000 (11:29 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 13 Dec 2007 10:29:52 +0000 (11:29 +0100)
commit859fd598cb7a5f449fa3ce9aaafb65ade064b2ed
tree555f346d0e322181559c667f7c58a325908b4c71
parente116d16c19904addc54c93b3c5b272fb414c2f99
sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram renaming declaration...

2007-12-06  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
renaming declaration, use the Slocs of the formal parameters from the
declaration of the formal subprogram when creating the formal parameter
entities in the renaming declaration.
(Analyze_Formal_Type_Declaration): Change the placement of the error
message concerning illegal known discriminants. It is now posted on the
type rather than on the first discriminant. This change ensures early
error report.
(Freeze_Subprogram_Body): If the generic subprogram is nested within
the package body that contains the instance, do not generate an
out-of-place freeze node for the enclosing package.
(Collect_Previous_Instantiations): Ignore internal instantiations
generated for formal packages.
(Validate_Derived_Type_Instance): Add a check that when a formal
derived type is Known_To_Have_Preelab_Init then the actual type must
have preelaborable initialization, and issue an error when this
condition is violated.

From-SVN: r130851
gcc/ada/sem_ch12.adb