aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_decls.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/sem_decls.adb')
-rw-r--r--src/vhdl/sem_decls.adb6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vhdl/sem_decls.adb b/src/vhdl/sem_decls.adb
index cb1fe09ab..5bb1385a9 100644
--- a/src/vhdl/sem_decls.adb
+++ b/src/vhdl/sem_decls.adb
@@ -3133,6 +3133,12 @@ package body Sem_Decls is
(+El, "missing protected type body for %n", +El);
end if;
end;
+ when Iir_Kind_Package_Declaration =>
+ if Get_Need_Body (El)
+ and then Get_Package_Body (El) = Null_Iir
+ then
+ Error_Msg_Sem (+El, "missing package body for %n", +El);
+ end if;
when others =>
null;
end case;