[Ada] Internal crash on illegal renaming
authorHristian Kirtchev <kirtchev@adacore.com>
Thu, 11 Jul 2019 08:01:58 +0000 (08:01 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 11 Jul 2019 08:01:58 +0000 (08:01 +0000)
commitbce6accb664712f2d046bad9566fee810b43fed6
tree29e44b92c5b50a58ae72d4de61528e4e759222e3
parenta081ded4df03e30cd4aefa1e946eb31aa423bfb2
[Ada] Internal crash on illegal renaming

This patch updates the retrieval of the renamed object name of an object
renaming declaration to handle various name forms.

No need for a test because one already exists, and reproducing requires
a compiler built with assertions.

2019-07-11  Hristian Kirtchev  <kirtchev@adacore.com>

gcc/ada/

* sem_ch8.adb (Analyze_Object_Renaming): Obtain the object being
renamed using routine Get_Object_Name which takes care of
various name forms.
(Get_Object_Name): New routine.

From-SVN: r273387
gcc/ada/ChangeLog
gcc/ada/sem_ch8.adb