This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36960] Reference variable in virtually inherited base corrupted under optimization



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]