OSDN Git Service

2009-04-20 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Apr 2009 12:29:39 +0000 (12:29 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Apr 2009 12:29:39 +0000 (12:29 +0000)
commit23a5bb7280291cec91d30adc15e091aaa7f280a4
tree8191080efbf741c0c8422d2f756457ec7452e8c8
parente10874de526c7af280dd5b2e8b7a6f113e35535a
2009-04-20  Ed Schonberg  <schonberg@adacore.com>

* sem_ch8,adb (Analyze_Object_Renaming): Reject ambiguous expressions
in an object renaming declaration when the expected type is an
anonymous access type.

* sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
ambiguity when one interpretation is an anonymous access type and the
other is a named access type, and the context itself is anonymous

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