Hide Forgot
Created attachment 497678 [details] Small example that demonstrates the problem Description of problem: Version-Release number of selected component (if applicable): g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13) How reproducible: Everytime. Compile attached sample Steps to Reproduce: 1. g++ -I /path/to/boost_1_46_1 -g -O2 -Wall -c tst.cc Actual results: /home/ts/pack/boost_1_46_1/boost/optional/optional.hpp: In function ‘std::vector<B, std::allocator<B> > f()’: /home/ts/pack/boost_1_46_1/boost/optional/optional.hpp:346: warning: dereferencing pointer ‘pretmp.811’ does break strict-aliasing rules cc1plus: note: initialized from here /home/ts/pack/boost_1_46_1/boost/optional/optional.hpp:346: warning: dereferencing pointer ‘pretmp.811’ does break strict-aliasing rules cc1plus: note: initialized from here /home/ts/pack/boost_1_46_1/boost/optional/optional.hpp:346: warning: dereferencing pointer ‘pretmp.811’ does break strict-aliasing rules cc1plus: note: initialized from here /home/ts/pack/boost_1_46_1/boost/optional/optional.hpp:346: warning: dereferencing pointer ‘pretmp.811’ does break strict-aliasing rules cc1plus: note: initialized from here /home/ts/pack/boost_1_46_1/boost/optional/optional.hpp:346: warning: dereferencing pointer ‘pretmp.811’ does break strict-aliasing rules cc1plus: note: initialized from here Expected results: No warnings Additional info: Modifying the example a little bit in ways that seem irrelevant makes the problem go away. Found in real-use code which was subsequently reduced to the attached sample.
Since RHEL 6.1 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
(In reply to comment #2) > Since RHEL 6.1 External Beta has begun, and this bug remains > unresolved, it has been rejected as it is not proposed as > exception or blocker. Puzzling message. Rejected altogether or for 6.1? Should I file it upstream, ie gcc's own bugzilla?
Please provide preprocessed source (g++ -O2 -I /path/to/boost_1_46_1 -E -o tst.ii tst.cc and attach tst.ii), I certainly can't reproduce it with boost 1.44.
Created attachment 498142 [details] Preprocessor output Generated with the following command line as requested in comment #4 g++ -O2 -I /home/ts/pack/boost_1_46_1z -E -o tst.iix tst.cc
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.