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++/24498] New: 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used


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


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