This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28236] wrong "control reaches" warning with enums.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2006 17:00:14 -0000
- Subject: [Bug c++/28236] wrong "control reaches" warning with enums.
- References: <bug-28236-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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