diff options
author | gingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7> | 2005-12-10 17:11:30 +0000 |
---|---|---|
committer | gingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7> | 2005-12-10 17:11:30 +0000 |
commit | 4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545 (patch) | |
tree | 8b49a281d46328ce06b5f45d8dea275f36feec55 /parse.adb | |
parent | 1716b52525c5b6baaba7e0a16d6d9dbf6633ac6d (diff) | |
download | ghdl-4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545.tar.gz ghdl-4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545.tar.bz2 ghdl-4339f4ca9ed9fe2c58d390e7738a5d2ee7d43545.zip |
bug fixes
Diffstat (limited to 'parse.adb')
-rw-r--r-- | parse.adb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |