We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c084a5b commit bb51212Copy full SHA for bb51212
src/verilog/verilog_typecheck_type.cpp
@@ -66,12 +66,13 @@ void verilog_typecheck_exprt::convert_type(
66
else
67
{
68
// we have a genuine array, and do a recursive call
69
- dest=array_typet();
70
- dest.set(ID_size, from_integer(width, integer_typet()));
+ typet array_subtype;
+ convert_type(subtype, array_subtype);
71
+ exprt size=from_integer(width, integer_typet());
72
+ dest=array_typet(array_subtype, size);
73
dest.add_source_location()=
74
static_cast<const source_locationt &>(src.find(ID_C_source_location));
75
dest.set(ID_offset, from_integer(offset, integer_typet()));
- convert_type(subtype, dest.subtype());
76
}
77
78
0 commit comments