checks.adb (Insert_Valid_Check): Apply validity check to expression of conversion...
authorGeert Bosch <bosch@gcc.gnu.org>
Tue, 11 Dec 2001 21:24:20 +0000 (22:24 +0100)
committerGeert Bosch <bosch@gcc.gnu.org>
Tue, 11 Dec 2001 21:24:20 +0000 (22:24 +0100)
commit84157f5101464652f4bdf73291f1f824935c7ef8
tree3e640f733e4608234c44262bc8cf7393e393fc6b
parentd5d7ae5c7510724e87d1d98e3f6f3866337da223
checks.adb (Insert_Valid_Check): Apply validity check to expression of conversion, not to result of conversion.

* checks.adb (Insert_Valid_Check): Apply validity check to expression
of conversion, not to result of conversion.

* sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
before freezing parent. If the declarations are mutually recursive,
an access to the current record type may be frozen before the
derivation is complete.

From-SVN: r47894
gcc/ada/ChangeLog
gcc/ada/checks.adb
gcc/ada/sem_ch3.adb