[Bug c++/16036] New: "may be used uninitialized in this function" warning with -funit-at-a-time flag
wanderer at rsu dot ru
gcc-bugzilla@gcc.gnu.org
Thu Jun 17 18:40:00 GMT 2004
Current CVS mainline G++ (3.5.0 20040617) generate warning
with command line: g++ -O -Wuninitialized -funit-at-a-time -o test.o -c test.cc
but not generate with: g++ -O -Wuninitialized -o test.o -c test.cc
for code:
--8X-----------------------
#include<fstream>
int main() {
try{
std::ofstream out("test.log");
if(out.fail()) return 1;
}catch(...){
return 1;
};
return 0;
}
---X8----------------------
--
Summary: "may be used uninitialized in this function" warning
with -funit-at-a-time flag
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wanderer at rsu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.1
GCC host triplet: i386-unknown-freebsd5.1
GCC target triplet: i386-unknown-freebsd5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16036
More information about the Gcc-bugs
mailing list