This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24498] New: 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used
- From: "yuri at tsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2005 01:29:55 -0000
- Subject: [Bug c++/24498] New: 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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