[Bug c++/41874] Incorrect "dereferencing type-punned pointer will break strict-aliasing rules" warning

2010-10-06 Thread muravev at yandex dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874 --- Comment #9 from Ilya Murav'jov 2010-10-06 19:43:30 UTC --- I've come across another weird warning emission in g++ 4.4: $ cat test.cc #include struct interface_type { virtual interface_type* clone(void* storage) const { retu

[Bug c++/41874] Incorrect "dereferencing type-punned pointer will break strict-aliasing rules" warning

2010-10-04 Thread muravev at yandex dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41874 --- Comment #7 from Ilya Murav'jov 2010-10-05 00:10:20 UTC --- AFAIK, users of Boost.Function suffer from this PR too. https://svn.boost.org/trac/boost/ticket/4538