[Bug libstdc++/12261] push_back() of std::list works without argument

paolo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 12 11:05:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


paolo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


------- Additional Comments From paolo at gcc dot gnu dot org  2003-09-12 11:05 -------
Cannot reproduce with 3.3.1 (i.e., current release branch), neither
with 3.4 experimental:

paolo:~> g++ 12261.cc
12261.cc: In function `int main()':
12261.cc:7: error: no matching function for call to `std::list<std::string,
   std::allocator<std::string> >::push_back()'
/usr/include/c++/3.3.1/bits/stl_list.h:746: error: candidates are: void
   std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::string,
   _Alloc = std::allocator<std::string>]



More information about the Gcc-bugs mailing list