gvpr does not recognize pseudo-attribute "root" in function
Seen in version 2.30.1
When I define a function that takes a node, and within that function access the node's pseudo-attribute "root", I get the following error:
gvpr: "/tmp/printRoot", line 3: graph_t g = n.<<<
-- cannot convert string to graph_t
An example program that triggers this:
BEGIN {
void printRoot(node_t n) {
graph_t g = n.root;
print(n, g);
}
}
N {
printRoot($);
}
If I access $.root
from within the N block instead of the printRoot function, I do not get the error.