[Bug libstdc++/32208] New: Patch for 32158 has bad code in std::vector::_M_fill_initialize
mec at google dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 4 18:52:00 GMT 2007
mec@hollerith:~/exp-43-redux$ cat vector-fill.cc
// Copyright 2007, Google Inc. All rights reserved.
// Author: mec@google.com (Michael Chastain)
#include <vector>
std::vector<int> my_vector (117);
===
mec@hollerith:~/exp-43-redux$ /home/mec/gcc-4.3-20070601/install/bin/g++ -Wall
-S vector-fill.cc
/home/mec/gcc-4.3-20070601/install/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:
In member function 'int std::vector<_Tp, _Alloc>::_M_fill_initialize(size_t,
const _Tp&) [with _Tp = int, _Alloc = std::allocator<int>]':
/home/mec/gcc-4.3-20070601/install/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../include/c++/4.3.0/bits/stl_vector.h:832:
warning: control reaches end of non-void function
===
This is from:
http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/include/bits/stl_vector.h?r1=124243&r2=125223
Trivial lack of "void".
===
Also, shouldn't there also be an error about lack of return type for
_M_fill_initialize?
--
Summary: Patch for 32158 has bad code in
std::vector::_M_fill_initialize
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mec at google dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32208
More information about the Gcc-bugs
mailing list