]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix wrong visibility over discriminants
authorRonan Desplanques <desplanques@adacore.com>
Fri, 4 Apr 2025 08:31:27 +0000 (10:31 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Jun 2025 11:03:10 +0000 (13:03 +0200)
commit3a4d64e1a81da321ecfda326fa541f3ea9bd6c5b
treebbaa6dbdc23457c4cffab495b07da8fc382def9f
parent67c494899585c26427dee8e9f562b87b7e502390
ada: Fix wrong visibility over discriminants

This patch fixes an issue where the compiler was incorrectly allowing
references to discriminants of the ancestor type in private type
extensions.

gcc/ada/ChangeLog:

* sem_ch3.adb (Build_Derived_Private_Type): Fix test.
(Build_Derived_Record_Type): Adjust error recovery paths.
gcc/ada/sem_ch3.adb