Created attachment 366447 [details] This is quite possibly a totally incorrect fix, but its based off the aligned_storage.hpp impl mentioned in optional.hpp's header and it does silence the warnings Description of problem: Warnings when using boost::optional with -fstrict-aliasing Version-Release number of selected component (if applicable): boost-1.39.0-8.fc12.x86_64 How reproducible: 100% Steps to Reproduce: 1. g++ -Wstrict-aliasing -O2 -c test.cpp Actual results: test.cpp: In function ‘bool bar()’: test.cpp:14: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules test.cpp:14: note: initialized from here Expected results: No warnings Additional info: Some discussion here: http://lists.boost.org/Archives/boost/2009/05/151305.php
Created attachment 366448 [details] sample source
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This was fixed with gcc 4.5 as found in F-14, gcc issue not boost.