aboutsummaryrefslogtreecommitdiffstats
path: root/sem_names.adb
diff options
context:
space:
mode:
Diffstat (limited to 'sem_names.adb')
-rw-r--r--sem_names.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sem_names.adb b/sem_names.adb
index c42c3dab3..686ff439a 100644
--- a/sem_names.adb
+++ b/sem_names.adb
@@ -1573,7 +1573,8 @@ package body Sem_Names is
| Iir_Kind_Selected_Element
| Iir_Kind_Dereference
| Iir_Kind_Implicit_Dereference
- | Iir_Kind_Attribute_Value =>
+ | Iir_Kind_Attribute_Value
+ | Iir_Kind_Function_Call =>
if Get_Kind (Get_Type (Prefix))
= Iir_Kind_Protected_Type_Declaration
then