aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-22 15:54:18 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-22 17:32:34 +0100
commit73bb7fd335965c9c6079415ce50fb2059c3e6265 (patch)
treece473e1c6677185506773bee20e7654acaee0c30
parentdf51b2a402b5ffa79a8c8af7a0f96764e40fbff2 (diff)
downloadghdl-73bb7fd335965c9c6079415ce50fb2059c3e6265.tar.gz
ghdl-73bb7fd335965c9c6079415ce50fb2059c3e6265.tar.bz2
ghdl-73bb7fd335965c9c6079415ce50fb2059c3e6265.zip
errorout: do not crash on wildcard types.
-rw-r--r--src/vhdl/errorout.adb5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vhdl/errorout.adb b/src/vhdl/errorout.adb
index be02cea1c..5c79be69c 100644
--- a/src/vhdl/errorout.adb
+++ b/src/vhdl/errorout.adb
@@ -688,9 +688,10 @@ package body Errorout is
return "overloaded name or expression";
when Iir_Kind_Integer_Type_Definition
- | Iir_Kind_Enumeration_Type_Definition
- | Iir_Kind_Wildcard_Type_Definition =>
+ | Iir_Kind_Enumeration_Type_Definition =>
return Image_Identifier (Get_Type_Declarator (Node));
+ when Iir_Kind_Wildcard_Type_Definition =>
+ return "<any>";
when Iir_Kind_Array_Type_Definition =>
return Disp_Type (Node, "array type");
when Iir_Kind_Array_Subtype_Definition =>