I was playing around a bit last night and found that
struct-layout-1_generate.c which creates the structure layout
compatibility tests has an out of bounds array index.

struct-layout-1_generate.c: In function ‘generate_fields’:
struct-layout-1_generate.c:1896:24: warning: array subscript is above
array bounds [-Warray-bounds]
         && e[n].type < &complex_attrib_array_types[NAATYPES2])
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It's pretty obvious that this should have used NCAATYPES2.   Verified by
checking the warning is fixed and re-running the testsuite.



Installed on the trunk.

jeff

Reply via email to