From 86bfd8ac497f4e4a753ddbd9d382b377d876dcbc Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 13 Jan 2014 02:40:01 +0100 Subject: Fix bug20312: rewrite of complex types. Fix crashes in sem_expr when string literals are used in range exprs. --- testsuite/gna/bug20312/arr.vhdl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testsuite/gna/bug20312/arr.vhdl (limited to 'testsuite/gna/bug20312/arr.vhdl') diff --git a/testsuite/gna/bug20312/arr.vhdl b/testsuite/gna/bug20312/arr.vhdl new file mode 100644 index 0000000..cad470e --- /dev/null +++ b/testsuite/gna/bug20312/arr.vhdl @@ -0,0 +1,15 @@ +entity arr is + generic (width : natural := 4); +end arr; + +architecture behav of arr is + subtype line is bit_vector (1 to width); + type memory is array (0 to 7) of line; +begin + process is + variable l : line; + variable mem : memory; + begin + wait; + end process; +end behav; -- cgit