From: Ronan Desplanques <desplanq...@adacore.com> This patch removes a comment that misleadingly presented a condition as being met only in rare situations, while it's in fact satisfied in very basic cases such as simple object declarations.
gcc/ada/ChangeLog: * sem_util.adb (Enter_Name): Remove comment. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_util.adb | 3 --- 1 file changed, 3 deletions(-) diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 40e3da36c20..523aff33f95 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -8089,9 +8089,6 @@ package body Sem_Util is if Ekind (Def_Id) in E_Discriminant | E_Component then null; - -- If a type is already set, leave it alone (happens when a type - -- declaration is reanalyzed following a call to the optimizer). - elsif Present (Etype (Def_Id)) then null; -- 2.43.0