From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12961 invoked by alias); 30 Apr 2010 06:05:49 -0000 Received: (qmail 10625 invoked by uid 48); 30 Apr 2010 06:05:32 -0000 Date: Fri, 30 Apr 2010 06:05:00 -0000 Message-ID: <20100430060532.10621.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/43943] "warning: no return statement in function returning non-void" should be an error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "david at rothlis dot net" 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: 2010-04/txt/msg03228.txt.bz2 ------- Comment #3 from david at rothlis dot net 2010-04-30 06:05 ------- > a function with a missing return is valid I just can't reconcile that with the following line from the C++ standard: "It is now invalid to return (explicitly or implicitly) from a function which is declared to return a value without actually returning a value." Any insights? Thanks for the "-Werror=return-type" tip. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43943