------- Comment #3 from tbm at cyrius dot com 2007-10-20 18:23 ------- /* Testcase by Martin Michlmayr <[EMAIL PROTECTED]> */
struct list_head { struct list_head *prev; }; struct prio_array { struct list_head queue[100]; }; struct rq { struct prio_array *active, arrays[2]; } per_cpu__runqueues; void sched_init (unsigned long __ptr) { int j, k; struct prio_array *array; struct rq *rq; rq = (&(*( { (typeof (&per_cpu__runqueues)) (__ptr); } ))); for (j = 0; j < 2; j++) { array = rq->arrays + j; for (k = 0; k < 100; k++) (array->queue + k)->prev = array->queue; } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33833