This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20624] [4.0/4.1 Regression] wrong "control reaches end of non-void function" warning
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2005 18:02:55 -0000
- Subject: [Bug middle-end/20624] [4.0/4.1 Regression] wrong "control reaches end of non-void function" warning
- References: <20050324162738.20624.oliverst@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-24 18:02 -------
Ok, now I can confirm it. The problem was I was using optimization.
Anyways the short testcase:
struct s {~s(); s();};
int f(int f2, int f3)
{
s gg;
if (f3 && f2)
return 1;
else
return 54;
}
: Search converges between 2004-07-09-trunk (#483) and 2004-07-12-trunk (#484).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-03-24 18:02:50
date| |
Summary|wrong "control reaches end |[4.0/4.1 Regression] wrong
|of non-void function" |"control reaches end of non-
|warning |void function" warning
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20624