summaryrefslogtreecommitdiff
path: root/src/vhdl/sem_decls.adb
diff options
context:
space:
mode:
authorTristan Gingold2015-05-15 03:51:59 +0200
committerTristan Gingold2015-05-15 03:51:59 +0200
commit1c9d81caa66995a20656e08168f5847707769858 (patch)
tree348dcbc2452f1a70d37d56d86f91700033218199 /src/vhdl/sem_decls.adb
parentadd7dec17997f8678ed6ba5061ed1abe86865496 (diff)
downloadghdl-1c9d81caa66995a20656e08168f5847707769858.tar.gz
ghdl-1c9d81caa66995a20656e08168f5847707769858.tar.bz2
ghdl-1c9d81caa66995a20656e08168f5847707769858.zip
vhdl 00+: allow non-protected shared variables with -frelaxed-rules
Implements ticket 62.
Diffstat (limited to 'src/vhdl/sem_decls.adb')
-rw-r--r--src/vhdl/sem_decls.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdl/sem_decls.adb b/src/vhdl/sem_decls.adb
index 8d79338..a53f206 100644
--- a/src/vhdl/sem_decls.adb
+++ b/src/vhdl/sem_decls.adb
@@ -1746,7 +1746,7 @@ package body Sem_Decls is
-- The base type of the subtype indication of a
-- shared variable declaration must be a protected type.
if Get_Shared_Flag (Decl) and not Is_Protected then
- Error_Msg_Sem
+ Error_Msg_Sem_Relaxed
("type of a shared variable must be a protected type",
Decl);
end if;