This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25986] New: return from funcrtion of void value allowed
- From: "yuri at tsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2006 23:47:45 -0000
- Subject: [Bug c++/25986] New: return from funcrtion of void value allowed
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code is meaningless therefore should produce the WARNING.
At least would be useful to have some pedantic warning mode when this should
produce warning.
Yuri
-------testcase----------
void a() { }
void f() {
return a();
}
--
Summary: return from funcrtion of void value allowed
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
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=25986