------- Comment #3 from rguenth at gcc dot gnu dot org 2007-07-08 19:46 ------- No, this doesn't have anything to do with aliasing. 4.3 simply inlines the memcpys. This is probably a middle-end issue with expanding structure assignments. 2.95 and 3.3 also expanded the calls inline. 3.4 does not, likewise 4.0, 4.1 and 4.2.
Note that this is likely not a problem in practice as memcpy (p, p, sizeof (*p)) is difficult to implement in a way that would make it not work. So, downgrading severity. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu dot | |org Severity|major |normal Status|UNCONFIRMED |NEW Component|c++ |middle-end Ever Confirmed|0 |1 Keywords| |wrong-code Last reconfirmed|0000-00-00 00:00:00 |2007-07-08 19:46:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667