------- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-29 00:01 ------- i = 0; upper.D.2127.ref = &i; upper.D.2125._vptr$Middle = &_ZTV5Upper + 12; return *((struct Lower *) &upper + (long unsigned int) *(int *) &_ZTV5Upper)->ref;
This works on the trunk correctly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36960