[Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments)
sring at gmx dot net
gcc-bugzilla@gcc.gnu.org
Tue Jan 13 18:50:00 GMT 2004
#include <list>
int main()
{
std::list<int> l;
l.push_back();
return 0;
}
Spits an error:
t.cc:6: error: no matching function for call to `std::list<int,
std::allocator<int> >::push_back()'
/home/sr/gcc332/include/c++/3.3.2/bits/stl_list.h:746: error: candidates are:
void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = int, _Alloc =
std::allocator<int>]
--
Summary: Valid code rejected that earlier version did accept
(default arguments)
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sring at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13673
More information about the Gcc-bugs
mailing list