OSDN Git Service

2011-09-02 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Sep 2011 10:07:35 +0000 (10:07 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Sep 2011 10:07:35 +0000 (10:07 +0000)
commitb88c4b02de2de058990f973e9293a2c62260a476
treece09a607f900a207daf6f88246d93c39a6056b95
parentb84a52e5272fb60722b12fa4917a233c31087183
2011-09-02  Ed Schonberg  <schonberg@adacore.com>

* sinfo.ads, sinfo.adb: New semantic attribute Premature_Use,
present in incomplete type declarations to refine the error
message the full declaration is in the same unit.
* sem_ch4.adb (Analyze_Selected_Component): If the prefix is of
an incomplete type, set the Premature_Use for additional message.
* sem_ch3.adb (Find_Type_Name): If partial view is incomplete
and Premature_Use is set, place additional information at the
point of premature use.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178461 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sinfo.adb
gcc/ada/sinfo.ads