diff options
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-ieee-std_logic_arith.adb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-ieee-std_logic_arith.adb b/src/vhdl/vhdl-ieee-std_logic_arith.adb index ab6ba9646..abb7218d2 100644 --- a/src/vhdl/vhdl-ieee-std_logic_arith.adb +++ b/src/vhdl/vhdl-ieee-std_logic_arith.adb @@ -82,6 +82,13 @@ package body Vhdl.Ieee.Std_Logic_Arith is begin Decl := Get_Declaration_Chain (Pkg); + if Decl /= Null_Iir + and then Get_Kind (Decl) = Iir_Kind_Use_Clause + then + -- Mentor version. Don't extract and don't crash. + return; + end if; + -- The first declaration should be type Unsigned. if not (Decl /= Null_Iir and then Get_Kind (Decl) = Iir_Kind_Type_Declaration |