From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11577 invoked by alias); 17 May 2008 09:54:39 -0000 Received: (qmail 11442 invoked by uid 48); 17 May 2008 09:53:57 -0000 Date: Sat, 17 May 2008 09:54:00 -0000 Subject: [Bug c++/36254] New: wrong "control reaches end of non-void function" warning X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pluto at agmk 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: 2008-05/txt/msg01284.txt.bz2 $ g++ t1.cpp -Wall -c t1.cpp: In function 'bool f()': t1.cpp:10: warning: control reaches end of non-void function $ g++ t2.cpp -Wall -c t2.cpp: In function 'bool f(int)': t2.cpp:16: warning: control reaches end of non-void function tested on 4.1.2, 4.2.3-20080201 and 4.3.0-20080417 -- Summary: wrong "control reaches end of non-void function" warning Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net GCC host triplet: x86_64-gnu-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36254