This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments)


#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]