diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-07-08 09:27:07 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-07-18 19:19:56 +0200 |
commit | b4a3f85b3f5331af4f73252a8a34d0efce467c56 (patch) | |
tree | 0bd68fb8148587a43180f18006d5f77e70601cda /src/vhdl/vhdl-sem_expr.ads | |
parent | 05507ab2016c069a195ad86be451b5b33c64df4c (diff) | |
download | ghdl-b4a3f85b3f5331af4f73252a8a34d0efce467c56.tar.gz ghdl-b4a3f85b3f5331af4f73252a8a34d0efce467c56.tar.bz2 ghdl-b4a3f85b3f5331af4f73252a8a34d0efce467c56.zip |
vhdl: improve support of subtype attribute.
A subtype definition does not mean anymore that the subtype is constrained.
It is now defined by the subtype indication of the name.
Diffstat (limited to 'src/vhdl/vhdl-sem_expr.ads')
-rw-r--r-- | src/vhdl/vhdl-sem_expr.ads | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vhdl/vhdl-sem_expr.ads b/src/vhdl/vhdl-sem_expr.ads index f24ec159a..98d89c6cd 100644 --- a/src/vhdl/vhdl-sem_expr.ads +++ b/src/vhdl/vhdl-sem_expr.ads @@ -259,8 +259,7 @@ package Vhdl.Sem_Expr is -- If EXPR is partially or fully analyzed, ATYPE must not be null_iir and -- it is checked with the types of EXPR. EXPR may become fully analyzed. function Sem_Expression_Wildcard - (Expr : Iir; Atype : Iir; Force_Constrained : Boolean := False) - return Iir; + (Expr : Iir; Atype : Iir; Constrained : Boolean := False) return Iir; -- To be used after Sem_Expression_Wildcard to update list ATYPE of -- possible types. |