mirror of
https://github.com/verilator/verilator.git
synced 2026-08-30 01:38:21 +02:00
Throw unsupported when reduction constraining dynamic subarray (#8111)
Signed-off-by: Kornel Uriasz <[email protected]>
This commit is contained in:
@@ -2740,6 +2740,12 @@ class ConstraintExprVisitor final : public VNVisitor {
|
||||
nodep->v3fatalSrc("Method not handled in constraints? " << nodep);
|
||||
return;
|
||||
}
|
||||
if (!VN_IS(nodep->fromp(), VarRef)) {
|
||||
// Non-dynamic subarrays and member arrays are handled in other parts of code
|
||||
nodep->v3warn(CONSTRAINTIGN, "Unsupported: Array reduction constraint on dynamic "
|
||||
"array inside array or struct");
|
||||
return;
|
||||
}
|
||||
|
||||
// Create loop variable and header
|
||||
AstVar* const loopVarp
|
||||
|
||||
Reference in New Issue
Block a user