From 131beedb017e7a7fe5b00f4163143b9670acfeec Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 3 May 2022 08:00:13 +0200 Subject: vhdl-sem_names: second fix for #2048 --- src/vhdl/vhdl-sem_names.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vhdl/vhdl-sem_names.adb b/src/vhdl/vhdl-sem_names.adb index ddf431438..4ce05632f 100644 --- a/src/vhdl/vhdl-sem_names.adb +++ b/src/vhdl/vhdl-sem_names.adb @@ -3272,7 +3272,8 @@ package body Vhdl.Sem_Names is Spec => Prefix, Assoc_Chain => Null_Iir); Sem_As_Selected_By_All_Name (Prefix); - when Iir_Kind_Library_Declaration => + when Iir_Kind_Library_Declaration + | Iir_Kind_Package_Declaration => Error_Msg_Sem (+Name, "%n cannot be selected by all", +Prefix); Set_Named_Entity (Name, Error_Mark); return; -- cgit v1.2.3