This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20681] [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: 3 Aug 2005 00:37:52 -0000
- Subject: [Bug c++/20681] [4.0/4.1 Regression] wrong "control reaches end of non-void function" warning
- References: <20050329095503.20681.oliverst@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-03 00:37 -------
Hmm, seems like anything after a "return" should be removed even before CFG was created:
return D.1766;
goto <D1765>;
I think I might get around to implementing that but it might take me some time.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20681