IVL_VT_LOGIC is default localparam type not IVL_VT_NO_TYPE
This patch fixes a bug where a local parameter with only a range was incorrectly setting the default parameter type to IVL_VT_NO_TYPE. This would create a compile time assert for any untyped parameter/localparam immediately following it.
This commit is contained in:
parent
f9c67e21b2
commit
2ceb0539af
2
parse.y
2
parse.y
|
|
@ -2519,7 +2519,7 @@ localparam_assign_decl
|
||||||
localparam_assign_list
|
localparam_assign_list
|
||||||
{ param_active_range = 0;
|
{ param_active_range = 0;
|
||||||
param_active_signed = false;
|
param_active_signed = false;
|
||||||
param_active_type = IVL_VT_NO_TYPE;
|
param_active_type = IVL_VT_LOGIC;
|
||||||
}
|
}
|
||||||
| K_signed range
|
| K_signed range
|
||||||
{ param_active_range = $2;
|
{ param_active_range = $2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue