From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24489 invoked by alias); 9 Aug 2002 11:46:09 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24453 invoked by uid 71); 9 Aug 2002 11:46:06 -0000 Resent-Date: 9 Aug 2002 11:46:06 -0000 Resent-Message-ID: <20020809114606.24452.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Tim.Barnett@hekate.org.uk Received: (qmail 24169 invoked by uid 61); 9 Aug 2002 11:44:16 -0000 Message-Id: <20020809114416.24166.qmail@sources.redhat.com> Date: Fri, 09 Aug 2002 04:46:00 -0000 From: Tim.Barnett@hekate.org.uk Reply-To: Tim.Barnett@hekate.org.uk To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7551: g++ does not mind non-void functions which return no value. X-SW-Source: 2002-08/txt/msg00184.txt.bz2 List-Id: >Number: 7551 >Category: c++ >Synopsis: g++ does not mind non-void functions which return no value. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Fri Aug 09 04:46:06 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Tim Barnett >Release: 3.1.1 >Organization: >Environment: i686-pc-linux-gnu >Description: A simple function with a return type (say, int or bool) but which fails to return a value at all, compiles fine without even a warning. Even with -pedantic and/or -ansi. Also saw this with version 3.0.4. >How-To-Repeat: g++ bug.ii Where bug.ii is the included, preprocessed source file. >Fix: >Release-Note: >Audit-Trail: >Unformatted: