------- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-17 09:39 ------- It's not a dup of PR42834 (but it might be the same issue as PR42832 which was a libstdc++ bug or a frontend bug).
It happens to work on trunk, so it might also be a dup of PR43987 (though unlikely), rather different inlining might have made the bug latent. I can confirm the observed effect. I didn't investigate on whether this is a bug in boost or not (we're changing our minds on what is valid and what not all the time anyway). -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |4.5.0 Known to work| |4.4.3 4.6.0 Last reconfirmed|0000-00-00 00:00:00 |2010-05-17 09:39:31 date| | Summary|[4.5.0] Aliasing bug |[4.5 Regression] Aliasing |triggered by |bug triggered by |Boost.Bind/Boost.Function |Boost.Bind/Boost.Function Target Milestone|--- |4.5.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44164