Created attachment 477849 [details] preprocessed source Description of problem: mysterious warning with -DNDEBUG, -Wall using boost::optional Version-Release number of selected component (if applicable): gcc-4.6.0-0.6.fc15.x86_64 How reproducible: 100% Steps to Reproduce: 1. g++ -c -O2 -Wall -DNDEBUG foo.cxx or 2. g++ -c -O2 -Wall foo.ii Actual results: foo.cxx:47:9: warning: ‘*((void*)& aNewItem +8)’ may be used uninitialized in this function [-Wuninitialized] Expected results: Either no warning, or a better line location to indicate where the error lies. Additional info: Couple of other very similar examples included in the foo.cxx don't trigger the warning and gcc 4.5.X didn't warn about this.
Created attachment 477850 [details] unprocessed source
Tracking upstream as PR47679.