This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/29272] [4.2 Regression] memcpy optimization causes wrong-code



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-29 17:30 -------
I think we can declare this as invalid code for C and unkown for C++.

For C++, inplacement new is supposed to "fix" the problem with different types
as C++ defines aliasing based on the dynamic type but we get a different bug
with that being PR 29286.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]