mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix compound types in anonymous structs (#8449)
Signed-off-by: Artur Bieniek <[email protected]>
This commit is contained in:
+1
-2
@@ -74,8 +74,7 @@ public:
|
||||
return v3Global.opt.compLimitMembers() != 0 // Enabled
|
||||
&& !varp->isStatic() // Not a static variable
|
||||
&& !varp->isSc() // Aggregates can't be anon
|
||||
&& !VN_IS(dtp, SampleQueueDType) // Aggregates can't be anon
|
||||
&& !(VN_IS(dtp, NodeUOrStructDType) && !VN_CAST(dtp, NodeUOrStructDType)->packed())
|
||||
&& !dtp->isCompound() // Non-POD members are not allowed in an anonymous aggregate
|
||||
&& (varp->basicp() && !varp->basicp()->isOpaque()); // Aggregates can't be anon
|
||||
}
|
||||
static bool isConstPoolMod(const AstNode* modp) {
|
||||
|
||||
Reference in New Issue
Block a user