aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/elab-vhdl_annotations.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/elab-vhdl_annotations.adb b/src/synth/elab-vhdl_annotations.adb
index 7165db5de..8274d9ea8 100644
--- a/src/synth/elab-vhdl_annotations.adb
+++ b/src/synth/elab-vhdl_annotations.adb
@@ -302,7 +302,7 @@ package body Elab.Vhdl_Annotations is
| Iir_Kind_Interface_Constant_Declaration
| Iir_Kind_Interface_File_Declaration =>
Ind := Get_Subtype_Indication (El);
- if Ind /= Null_Iir then
+ if Ind /= Null_Iir and then not Get_Is_Ref (El) then
case Get_Kind (Ind) is
when Iir_Kinds_Subtype_Definition =>
Annotate_Type_Definition (Block_Info, Ind);