This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38835] field-insensitive PTA causes libstdc++ miscompiles
- 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: 16 Jan 2009 18:22:54 -0000
- Subject: [Bug tree-optimization/38835] field-insensitive PTA causes libstdc++ miscompiles
- References: <bug-38835-10053@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-01-16 18:22 -------
return reinterpret_cast<_Tp*>(reinterpret_cast<_UIntPtrType>(this)
+ _M_diff);
(const struct _Fwd_list_node_base *) this p+ (long unsigned int) ((const
struct _Relative_pointer_impl *) this)->_M_diff
That seems fine. In fact If we are failing because of aliasing issues, then we
have a bigger issue really because the code could have been written as:
return reinterpret_cast<_Tp*>(reinterpret_cast<char*>(this) +
_M_diff);
And still be defined so I don't think this is really PR 36227.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|36227 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38835