This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12261] New: push_back() of std::list works without argument
- From: "peter dot klotz at aon dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2003 09:04:38 -0000
- Subject: [Bug c++/12261] New: push_back() of std::list works without argument
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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
Summary: push_back() of std::list works without argument
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peter dot klotz at aon dot at
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686 linux gnu
#include <list>
#include <string>
int main(void)
{
std::list<std::string> l;
l.push_back();
return 0;
}
The above program compiles although the C++ standard only mentions
void push_back(const T& x)
for std::list (23.2.2, p.475).