Dear all, I'm not sure whether this is a bug or not but it compiles ok in gcc.4.0.0 and 2.95.3 and AcornC/C++ on RISC OS and the code seems to perform as I intend. I'm trying to take a pointer to a typedef'd array item. It only seems to happen if the typedef'd thing is itself an array, i.e. I don't get this problem with structures, so to get by I can put my array inside a structure but that seems a bodge to me! ============test code============ typedef unsigned char bob[10]; bob a[100]; void doit(bob *x) { x[0][0]=1; } int main(void) { doit(&a[1]); } ============================== cl65 gives me: bugtest.c(12): Error: Incompatible pointer types I'm using 2.10.5, 20050523 at the moment, but same problem in 2.10.1 Cheers Dom ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Jun 15 15:09:40 2005
This archive was generated by hypermail 2.1.8 : 2005-06-15 15:09:45 CEST