diff options
-rw-r--r-- | src/vhdl/sem_scopes.adb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vhdl/sem_scopes.adb b/src/vhdl/sem_scopes.adb index 2f70832e0..617f7bedc 100644 --- a/src/vhdl/sem_scopes.adb +++ b/src/vhdl/sem_scopes.adb @@ -416,6 +416,11 @@ package body Sem_Scopes is return; end if; + if Get_Kind (Decl) = Iir_Kind_Element_Declaration then + -- Do not warn for record elements. They are used by selection. + return; + end if; + if Decl = Prev_Decl then -- Can happen in configuration. No real hidding. return; |