This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42832] Revisit std::function for aliasing issues
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2010 18:42:13 -0000
- Subject: [Bug libstdc++/42832] Revisit std::function for aliasing issues
- References: <bug-42832-16141@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from paolo dot carlini at oracle dot com 2010-01-24 18:42 -------
Richard, I'm sorry, I realize now that I'm confused about an important point:
does your analysis of function::swap mean that we are *already* miscompiling
it? Or, are we going to commit patches which will lead to miscompilations in
4.5?
Because otherwise, I don't really think it makes sense to have an interim
version of the code using std::memcpy (at least not for the C+0x version): for
4.6.0 we could as well move directly to the optimized but correct solution - in
other terms we didn't really understand each other the last week, and this
issue should not depend on 42834, on your 42845 instead and should be targeted
to 4.6.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42832