This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/39358] [4.4 regression] Wrong aliasing warning with lists
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2009 22:55:37 -0000
- Subject: [Bug tree-optimization/39358] [4.4 regression] Wrong aliasing warning with lists
- References: <bug-39358-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-03-03 22:55 -------
Actually if you do inlining you end up with the cast happening to &node in this
case. Your reduced testcase is undefined because nothing can change y.prev
between the constructor and the call to back so you end up with accessing a
Node_base via a Node and there is no such data there.
The original testcase might not be, I have to look into the preprocessed source
and the tree dumps to figure out if you reduced the testcase too far or really
the original testcase is just undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39358