Fix parsing array typedefs of unknown size
commite034853b38907440142107eb689c5dd6c6621fca
authorMichael Matz <matz@suse.de>
Wed, 13 Jul 2016 15:39:15 +0000 (13 17:39 +0200)
committerMichael Matz <matz@suse.de>
Thu, 15 Dec 2016 16:47:08 +0000 (15 17:47 +0100)
tree858d1cd53633cd82b2203e802e80f37ed5a87415
parentb7e0b693a65793a5aeee51cf9fa58638376c6f06
Fix parsing array typedefs of unknown size

This must compile:
 typedef int arrtype1[];
 arrtype1 sinit19 = {1};
 arrtype1 sinit20 = {2,3};
and generate two arrays of one resp. two elements.  Before the fix
the determined size of the first array was encoded in the type
directly, so sinit20 couldn't be parsed anymore (because arrtype1
was thought to be only one element long).
tccgen.c
tests/tcctest.c