sem_dist.ads, [...] (Is_RACW_Stub_Type_Operation): New subprogram.
authorThomas Quinot <quinot@adacore.com>
Tue, 20 May 2008 12:50:52 +0000 (14:50 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 20 May 2008 12:50:52 +0000 (14:50 +0200)
commit4b1c635450494b9aa044f355cb4fb87fcc0841eb
tree2d97f29ba15bb1b120dae1b2612fc1ef333715f9
parentff81221b5bd3b8101301e4eaaa15bde8b0553b00
sem_dist.ads, [...] (Is_RACW_Stub_Type_Operation): New subprogram.

2008-05-20  Thomas Quinot  <quinot@adacore.com>

* sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
subprogram.

* sem_type.adb
(Add_One_Interp): Ignore any interpretation that is a primitive
operation of an RACW stub type (these primitives are only executed
through dispatching, never through static calls).
(Collect_Interps): When only one interpretation has been found, set N's
Entity and Etype to that interpretation, otherwise Entity and Etype may
still refer to an interpretation that was ignored by Add_One_Interp,
in which case would end up with being marked as not overloaded but with
an Entity attribute not pointing to its (unique) correct interpretation.

From-SVN: r135642
gcc/ada/sem_dist.adb
gcc/ada/sem_dist.ads
gcc/ada/sem_type.adb