summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold2016-01-07 06:39:13 +0100
committerTristan Gingold2016-01-07 06:39:13 +0100
commit1b5f6929a45cd03aff1ed8077fa6cb0b3aa31885 (patch)
treefdf3ca5925dbb92f6251cf30c98a74e55a5b2f85 /src
parent8c92a369114fbd1b86d78ed6b6e18d1595f3308c (diff)
downloadghdl-1b5f6929a45cd03aff1ed8077fa6cb0b3aa31885.tar.gz
ghdl-1b5f6929a45cd03aff1ed8077fa6cb0b3aa31885.tar.bz2
ghdl-1b5f6929a45cd03aff1ed8077fa6cb0b3aa31885.zip
Fix staticness for range attribute.
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/sem_names.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/sem_names.adb b/src/vhdl/sem_names.adb
index f297f86..1ffb51e 100644
--- a/src/vhdl/sem_names.adb
+++ b/src/vhdl/sem_names.adb
@@ -1007,7 +1007,7 @@ package body Sem_Names is
and then Staticness = None
and then (Flag_Relaxed_Rules or Vhdl_Std = Vhdl_93c)
then
- Staticness := Iir_Staticness'Max (Globally,
+ Staticness := Iir_Staticness'Min (Globally,
Get_Expr_Staticness (Prefix));
end if;
Set_Expr_Staticness (Attr, Staticness);