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++/28236] wrong "control reaches" warning with enums.



------- Comment #1 from pluto at agmk dot net  2006-07-03 17:00 -------
zoo (__e)
{
  int D.1616;
<bb 0>:
  switch (__e)
    {
      case 0: goto <L0>;
      case 1: goto <L5>;
      default : goto <L2>;  <====
    }
<L0>:;
  D.1616 = -1;
  goto <bb 3> (<L3>);
<L2>:;
  return;                   <==== problem.
<L5>:;
  D.1616 = 1;
<L3>:;
  return D.1616;
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28236


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