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 tree-optimization/21407] [4.1 Regression] wrong code with downcast in C++


------- Additional Comments From giovannibajo at libero dot it  2005-05-10 16:01 -------
In fact, the salias dump for the C++ testcase says:

---------------------------------------------------------------
;; Function void bar() (_Z3barv)

structure field tag SFT.2 created for var sb offset 0 size 32
void bar() ()
{
  struct B sb;

<bb 0>:
  foo (&sb.D.1580);
  return;

}
---------------------------------------------------------------

so it looks like the substructure *is* at offset zero.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21407


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