Skip to content

Commit

Permalink
Use expandGroup1 to prevent errors
Browse files Browse the repository at this point in the history
"Must not use any:[..] .. because it has address of network"
 from intermediate aggregates
  • Loading branch information
hknutzen committed Apr 11, 2024
1 parent 5a78dc7 commit 711ca5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/pkg/pass1/cut-netspoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (c *spoc) markAndSubstElements(
isUsed map[string]bool) {

expand := func(el ast.Element) groupObjList {
return c.expandGroup([]ast.Element{el}, ctx, v6, false)
return c.expandGroup1([]ast.Element{el}, ctx, v6, false, false)
}
toAST := func(obj groupObj) ast.Element {
var result ast.Element
Expand Down

0 comments on commit 711ca5f

Please sign in to comment.