This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36254] wrong "control reaches end of non-void function" warning
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2008 12:42:05 -0000
- Subject: [Bug c++/36254] wrong "control reaches end of non-void function" warning
- References: <bug-36254-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from manu at gcc dot gnu dot org 2008-10-27 12:42 -------
What is an IF_STMT?
Is block_may_fallthru a middle-end function, then why it is seeing front-end
tree codes? Is it not, then why each front-end does not have its own version
(perhaps sharing some common part)?
Dumping this code with -fdump-tree-original is also broken.
I wish there was a way to make compilation of GCC fail every time a front-end
tree code is added and it is not handled in all relevant places.
Jakub, are you going to work on a fix?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36254