[Bug libstdc++/41316] forward_list::sort violates strict aliasing rules

paolo dot carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 9 11:37:00 GMT 2009



------- Comment #10 from paolo dot carlini at oracle dot com  2009-09-09 11:36 -------
Ah, so, without moving _M_sort_after itself. By the way, I'm not sure to
understand why you need an ugly reinterpret cast, aren't you just going from
pointer to derived to pointer to base? I see the issue is tricky anyway...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|41317                       |


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



More information about the Gcc-bugs mailing list