[Bug c++/20624] [4.0/4.1 Regression] wrong "control reaches end of non-void function" warning
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 17 15:55:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17 15:55 -------
Reduced new testcase:
struct fpos {
fpos(int __pos) {}
};
struct g {
g();
~g();
};
fpos seekoff(int b, int c)
{
g __buf;
if (b != -1 && c >= 0)
return fpos(-1);
else
return fpos(-1);
}
The issue here is (produced inside the compiler):
return <retval>;
goto <D1792>;
Which means this PR 20681 is a dup of this as the problem is the same.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20624
More information about the Gcc-bugs
mailing list