Hello again, I also noticed that neither the following example is supported.
float (**myA)[DIM] = (float (**)[])A; it throughs "Error: Length of array is not a constant: DIM" but the same declaration is fine with gcc. Thank you Zakkak Foivos On 01/19/2011 09:52 AM, Foivos Zakkak wrote: > Hello, > > my subject may not be that clear and because i might not be able to > explain it as well i'll give an example that gcc successfully compiles > but CIL fails to parse. > > void foo(int DIM, int *A[DIM][DIM]) > { > } > > as you can see DIM is an argument of function foo and is not defined by > #define (so it's not a constant) > also notice that int *A[DIM][DIM] is different from int ***A it is > actualy equal to int**A > Is there a reason why CIL doesn't support this syntax or just got away? > Could this be added in a later release please? > > Thank you > Zakkak Foivos > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > CIL-users mailing list > CIL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cil-users > ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users