Bug 676361
Summary: | warning: ‘*((void*)& aNewItem +8)’ may be used uninitialized in this function | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Caolan McNamara <caolanm> | ||||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | rawhide | CC: | bkoz, jakub | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2011-02-10 15:05:01 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Created attachment 477850 [details]
unprocessed source
Tracking upstream as PR47679. |
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.