sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype to the known...
authorGary Dismukes <dismukes@adacore.com>
Tue, 27 May 2008 08:50:04 +0000 (10:50 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 27 May 2008 08:50:04 +0000 (10:50 +0200)
commit491016e57014542fa5f69d27d2c944c5c6bd5289
treecc84d84cd3df9c42fd27fb77354cf4e22757f942
parent393148620c7bb43f25c976a32daf205c90f33b54
sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype to the known type entity E...

2008-05-27  Gary Dismukes  <dismukes@adacore.com>

* sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
to the known type entity E, rather than setting it to Any_Type. Fixes
possible blowup in function Base_Init_Proc, as called from Freeze_Entity
for objects whose type had an illegal constraint.

From-SVN: r135979
gcc/ada/sem_ch3.adb