This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16036] New: "may be used uninitialized in this function" warning with -funit-at-a-time flag
- From: "wanderer at rsu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2004 18:40:21 -0000
- Subject: [Bug c++/16036] New: "may be used uninitialized in this function" warning with -funit-at-a-time flag
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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