OSDN Git Service

2008-05-20 Thomas Quinot <quinot@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2008 12:50:52 +0000 (12:50 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 May 2008 12:50:52 +0000 (12:50 +0000)
commit4360b13baff1bf0ce4f6fbe84ddaa4b789e64f2d
tree2d97f29ba15bb1b120dae1b2612fc1ef333715f9
parentf62077309896860fb2ee5d1bdf62f7dc02a4a00a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135642 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/sem_dist.adb
gcc/ada/sem_dist.ads
gcc/ada/sem_type.adb