This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16036] New: "may be used uninitialized in this function" warning with -funit-at-a-time flag


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]