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++/32132] New: bogus warning at -O3 ( 'r' may be used uninitialized in this function ).


attached testcase produces unexpected warning at -O3:

$ g++ -Wall -Woverloaded-virtual  -Werror -O3 -gdwarf-2 -g1 -fPIE \
  -Wno-error -c auHexCastTest.ii

../../au/h/auHexCast.hpp: In function ‘R au::hex_cast(const
stlp_std::string&) [with R = int]’:
../../au/h/auHexCast.hpp:50: warning: ‘r’ may be used uninitialized
in this function


-- 
           Summary: bogus warning at -O3 ( 'r' may be used uninitialized in
                    this function ).
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
GCC target triplet: x86_64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32132


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