aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-03-21 06:18:37 +0100
committerTristan Gingold <tgingold@free.fr>2018-03-21 06:18:37 +0100
commit7b59cea4fbf1efa72860216d6b1cd49af7109fe0 (patch)
tree155fb3b9cbd35e17da6abc59350deffbe16eb2ea /src/vhdl
parent0edf0a10c5f2f45c92bdce6d0f80de9790e205fa (diff)
downloadghdl-7b59cea4fbf1efa72860216d6b1cd49af7109fe0.tar.gz
ghdl-7b59cea4fbf1efa72860216d6b1cd49af7109fe0.tar.bz2
ghdl-7b59cea4fbf1efa72860216d6b1cd49af7109fe0.zip
sem: architecture is a nested declarative region only in vhdl-02
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/sem.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vhdl/sem.adb b/src/vhdl/sem.adb
index a1283ff17..6c2810d53 100644
--- a/src/vhdl/sem.adb
+++ b/src/vhdl/sem.adb
@@ -198,11 +198,11 @@ package body Sem is
-- considered to occur immediatly within the declarative region
-- associated with the entity declaration corresponding to the given
-- architecture body.
- if Vhdl_Std >= Vhdl_02 then
+ if Vhdl_Std = Vhdl_02 then
Open_Declarative_Region;
end if;
Sem_Block (Arch);
- if Vhdl_Std >= Vhdl_02 then
+ if Vhdl_Std = Vhdl_02 then
Close_Declarative_Region;
end if;