This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20624] [4.0/4.1 Regression] wrong "control reaches end of non-void function" warning


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]