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++/12261] New: push_back() of std::list works without argument


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).


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