id summary reporter owner description type status milestone component version severity resolution keywords cc 4127 warning break strict-aliasing rules anonymous Peter Dimov "Hello, under x86_64, using g++ 4.4.1 with '-W -Wall -O3' , when trying to compile the code below [code] #include ""boost/make_shared.hpp"" #include int main(void) { boost::shared_ptr x = boost::make_shared(""hello, world!""); std::cout << *x; } [/code] (copied from make_shared doc) I get the folowing warnings: >>> boost/smart_ptr/make_shared.hpp:52: warning: dereferencing type-punned pointer will break strict-aliasing rules" Bugs closed Boost 1.43.0 smart_ptr Boost Development Trunk Problem fixed warning strict-aliasing