[Bug c++/12261] New: push_back() of std::list works without argument
peter dot klotz at aon dot at
gcc-bugzilla@gcc.gnu.org
Fri Sep 12 09:04: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
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).
More information about the Gcc-bugs
mailing list