------- Comment #15 from mh+gcc at glandium dot org 2010-09-15 12:47 ------- Note that the original code doesn't use char *. I used char * to make it easily visible with a printf. Actually, just writing
void foo(jsval_layout l, void *s2) { jsval_layout m; m.asBits = l.asBits; void ** data = (void**)m.ptr; *data = s2; } exhibits the problem, afaics. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45623