void* a(void* x) {return (int (*)[10][printf("hi\n")])x;} int main() { int i; a(&i); }
should print hi. This was still broken in 4.3 in July, 2007. -- Summary: missed evaluation of VM array type Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrs at apple dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35198