Implicit (duplicate) arrays aren't working if not accessed as a struct/union's child #125
Labels
bug
concrete-issue
An actionable, concrete issue that includes stack trace & technical details. Usually post-triage
Describe the bug
Implicit arrays are working fine when accessed through a struct. However, when accessed through the scope only, they do not work. This problem was noticed when testing the PNG.bt template
E.g.
referencing the
item
variable directly instead of using__root.item
causes the variable lookup to go down a different code path which doesn't handle implicit arrays correctly.Stack Trace
To Reproduce
Run the PNG.bt template on a PNG image.
The template script below also demonstrates the problem:
The output of the above template script should be
0|0|0|0|
Implementation/Fix Notes/Thoughts
The test case below demonstrates the error:
with the result being:
The text was updated successfully, but these errors were encountered: