petdance/scratch — Issue #490: When using struct array of size 1 get "Non existent array element in struct: count = 1 max=1"
Author: petdance
Created: 2011-11-14 06:10:26+00:00
State: open
Labels: bug, core, Pri-minor, Sev-medium

When creating an array of structs with only one element char_offset_key does not recognize the pmc as an array. This looks like it is because it uses an internal var called max and assumes arrays always have size greater than 1.
A workaround is to force an array of size 1 to be of size 2.

An example test.pir to be attached.

Originally http://trac.parrot.org/parrot/ticket/486
Originally reported by bsdz (@)