public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24498] New: 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used
@ 2005-10-24 1:29 yuri at tsoft dot com
2005-10-24 1:31 ` [Bug c++/24498] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: yuri at tsoft dot com @ 2005-10-24 1:29 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/24498] 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used
2005-10-24 1:29 [Bug c++/24498] New: 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used yuri at tsoft dot com
@ 2005-10-24 1:31 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-24 1:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-24 01:31 -------
Fixed in 4.0.2 and above. This is a dup of bug 21951.
*** This bug has been marked as a duplicate of 21951 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24498
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-24 1:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24 1:29 [Bug c++/24498] New: 'control may reach end of non-void function' warning coming from STL when -no-exceptions and -Wall is used yuri at tsoft dot com
2005-10-24 1:31 ` [Bug c++/24498] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).