sem_res.adb (Resolve_Type_Conversion): In case of conversion to an abstract interface...
authorJavier Miranda <miranda@adacore.com>
Fri, 17 Feb 2006 16:08:28 +0000 (17:08 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Feb 2006 16:08:28 +0000 (17:08 +0100)
commit4197ae1e5611c7db9d272cce81507865c4d59d65
tree79854d884bf8111343b5d92c9c4f2272801a0cb6
parent08402a6d65a25da348c28c0a539dd0923ff976d6
sem_res.adb (Resolve_Type_Conversion): In case of conversion to an abstract interface type...

2006-02-17  Javier Miranda  <miranda@adacore.com>

* sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
abstract interface type, the static analysis is not enough to know if
the interface is implemented or not by the source tagged type. Hence
we must pass the work to the expander to generate the required code to
evaluate the conversion at run-time.
(Resolve_Equality_Op): Do not apply previous
transformation if expansion is disasbled, to prevent anomalies when
locating global references in a generic unit.

From-SVN: r111195
gcc/ada/sem_res.adb