doesn't happen with gcc-3.4.2

--- begin testcase ---
#include <vector>
#include <string>
using namespace std;

void p() {
  vector<string>().push_back("xxx");
}

---- end testcase ---

compiled with command:
/usr/local/gcc-4.0.1/bin/g++ -c v.C -O5 -Wall -fno-exceptions


-- 
           Summary: 'control may reach end of non-void function' warning
                    coming from STL when -no-exceptions and -Wall is used
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yuri at tsoft dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24498

Reply via email to