diff options
| author | Tristan Gingold <gingold@adacore.com> | 2015-11-30 06:44:43 +0100 | 
|---|---|---|
| committer | Tristan Gingold <gingold@adacore.com> | 2015-11-30 20:10:25 +0100 | 
| commit | c3845fa138a76f1369e20bc54016094a75da4df2 (patch) | |
| tree | 9d75a9e747260e353a79c6af238c2546f7ffd416 /src | |
| parent | 5c12b6a7aebed3c9df06396cc62e42115c8ec3d4 (diff) | |
| download | ghdl-c3845fa138a76f1369e20bc54016094a75da4df2.tar.gz ghdl-c3845fa138a76f1369e20bc54016094a75da4df2.tar.bz2 ghdl-c3845fa138a76f1369e20bc54016094a75da4df2.zip | |
No error message for universal bounds in v93c or relaxed-rules.
Diffstat (limited to 'src')
| -rw-r--r-- | src/vhdl/sem_expr.adb | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/vhdl/sem_expr.adb b/src/vhdl/sem_expr.adb index 295601938..2325a2708 100644 --- a/src/vhdl/sem_expr.adb +++ b/src/vhdl/sem_expr.adb @@ -863,16 +863,18 @@ package body Sem_Expr is              --  (prior the implicit conversion) is the type universal_integer.              null;           elsif Vhdl_Std = Vhdl_93c or else Flag_Relaxed_Rules then +            null; +         elsif Vhdl_Std /= Vhdl_93 then              --  GHDL: this is not allowed, however often used:              --  eg: for i in 0 to v'length + 1 loop              --  eg: for i in -1 to 1 loop              --  Be tolerant.              Warning_Msg_Sem ("universal integer bound must be numeric literal " -                             & "or attribute", Res); +                               & "or attribute", Res);           else              Error_Msg_Sem ("universal integer bound must be numeric literal " -                           & "or attribute", Res); +                             & "or attribute", Res);           end if;           Set_Type (Res, Integer_Type_Definition);        end if; | 
