[Bug libstdc++/24975] Aliasing problems inside libstdc++

chris at bubblescope dot net gcc-bugzilla@gcc.gnu.org
Mon Nov 21 16:03:00 GMT 2005



------- Comment #3 from chris at bubblescope dot net  2005-11-21 16:03 -------
While it does look like there might be an error in this warning code, I also
have a feeling we are doing something bad here. I looked at the examples in
stl_set.h and we are doing reference casting from a _Rb_tree_const_iterator to
a _Rb_tree_iterator. Now these both have identical elements and no virtual
functions, which is why I suspect this code works. However I sure this isn't
valid C++?


-- 

chris at bubblescope dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chris at bubblescope dot net


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



More information about the Gcc-bugs mailing list