From: SourceForge.net <no...@so...> - 2008-10-16 18:03:48
|
Bugs item #2172472, was opened at 2008-10-16 13:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2172472&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: gcc Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Rodney Beede (rbeede) Assigned to: Nobody/Anonymous (nobody) Summary: Optimization flags cause warnings with STL list Initial Comment: When I place a std::list inside a struct and compile my code with -Os (or -O2) and warnings enabled I get the following warning: stl_list.h:435: warning: '__p' might be used uninitialized in this function Please see the attached full source code for an example. Compile it with "c:\MinGW\bin\g++.exe" -Os -Wall std-list_struct_bug.cpp MinGW version used: 5.1.4 GCC version: g++.exe (GCC) 3.4.5 (mingw-vista special r3) OS: Windows XP PRO SP2 64-BIT Machine: Dell Optiplex GX620 (3.2Ghz Pentium D) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2172472&group_id=2435 |