[Ada] Crash on inherited private operation in child package
authorEd Schonberg <schonberg@adacore.com>
Fri, 13 Dec 2019 09:04:06 +0000 (09:04 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Fri, 13 Dec 2019 09:04:06 +0000 (09:04 +0000)
commit7f8ad8f001a4054e07b7d0762a14a6784bec136c
tree3f4c5b4ac48acb6b99ac7042351e300056d58f97
parent0a8ff576dbd2806fef992e52e1148a84dabebe5d
[Ada] Crash on inherited private operation in child package

2019-12-13  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_ch7.adb (Analyze_Package_Body_Helper): Do not call
Declare_Inherited_Private_Subprograms on s child body: the
required operations have already been created when analyzing the
corresponding package declaration. This prevents a redeclaration
of inehrited operation, and a crash when inserting the new
operation in the current scope.

From-SVN: r279349
gcc/ada/ChangeLog
gcc/ada/sem_ch7.adb