aboutsummaryrefslogtreecommitdiffstats
path: root/parse.adb
diff options
context:
space:
mode:
authorgingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-12-10 17:11:30 +0000
committergingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-12-10 17:11:30 +0000
commit4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545 (patch)
tree8b49a281d46328ce06b5f45d8dea275f36feec55 /parse.adb
parent1716b52525c5b6baaba7e0a16d6d9dbf6633ac6d (diff)
downloadghdl-4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545.tar.gz
ghdl-4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545.tar.bz2
ghdl-4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545.zip
bug fixes
Diffstat (limited to 'parse.adb')
-rw-r--r--parse.adb8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse.adb b/parse.adb
index a0e388e1c..2b66289e3 100644
--- a/parse.adb
+++ b/parse.adb
@@ -2782,6 +2782,14 @@ package body Parse is
return A_Choice;
else
Expr1 := Parse_Expression;
+
+ if Expr1 = Null_Iir then
+ -- Handle parse error now.
+ -- FIXME: skip until '=>'.
+ A_Choice := Create_Iir (Iir_Kind_Choice_By_Expression);
+ Set_Location (A_Choice);
+ return A_Choice;
+ end if;
end if;
else
Expr1 := Expr;