
On Wed, May 6, 2009 at 11:08 AM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
Does it affect boost::variant too?
Yes, it does for me: /home/mlcreech/svn/PCM-tk/trunk/vendor_export/include/boost/variant/detail/backup_holder.hpp: In member function 'virtual int CTrendThread::wait_for_events()': /home/mlcreech/svn/PCM-tk/trunk/vendor_export/include/boost/variant/detail/backup_holder.hpp:67: warning: dereferencing pointer '<anonymous>' does break strict-aliasing rules /home/mlcreech/svn/PCM-tk/trunk/vendor_export/include/boost/variant/detail/cast_storage.hpp:33: note: initialized from here this is triggered by a call to boost::apply_visitor. I tried a couple of simpler test cases with no problems, though. GCC 4.4.0, compiling w/ "-Os -Wall -std=c++0x" Boost 1.39 -- Matthew L. Creech