Community
Participate
Working Groups
Build ID: I20090611-1540 Steps To Reproduce: Section 6.7.5.3-7 of the C99 standard says "a declaration of a parameter as "array of type" shall be adjusted to "qualified pointer to type", where the type qualifiers (if any) are those specified within the[and] of the array type derivation" CVisitor.createType() has code that that does this processing, however it does not work if the parameter is declared as a typedef of an array. e.g. typedef int my_buf[16]; void goo(my_buf in); // The IType for in is an ITypedef of an IArrayType More information: CPPVisitor correctly removes the typedef before converting the type.
Created attachment 142252 [details] Fix for bug and junit test
Thanks Richard, I have slightly adapted your patch to deal with the fact that the index (incorrectly) provides IArrayTypes instead of ICArrayTypes. Fixed in 6.0.1 and HEAD > 20090722.