From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28204 invoked by alias); 27 Oct 2008 12:43:29 -0000 Received: (qmail 27425 invoked by uid 48); 27 Oct 2008 12:42:05 -0000 Date: Mon, 27 Oct 2008 12:43:00 -0000 Message-ID: <20081027124205.27424.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/36254] wrong "control reaches end of non-void function" warning In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg01735.txt.bz2 ------- 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