[Bug libstdc++/55413] [LTO] hashtable.h:1648 '__bbegin_bkt' may be used uninitialized in this function [-Werror=maybe-uninitialized]

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 20 14:55:00 GMT 2012


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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-11-20 14:54:22 UTC ---
Author: paolo
Date: Tue Nov 20 14:54:11 2012
New Revision: 193663

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193663
Log:
2012-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

    PR libstdc++/55413
    * include/bits/hashtable.h (_Hashtable<>::_M_rehash_aux): Initialize
    __bbegin_bkt and __prev_bkt to avoid uninitialized warnings.
    * testsuite/23_containers/unordered_set/instantiation_neg.cc: Adjust
    dg-error line number.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/hashtable.h
   
trunk/libstdc++-v3/testsuite/23_containers/unordered_set/instantiation_neg.cc



More information about the Gcc-bugs mailing list