From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15334 invoked by alias); 14 Nov 2002 14:06:02 -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 15311 invoked by uid 71); 14 Nov 2002 14:06:01 -0000 Resent-Date: 14 Nov 2002 14:06:01 -0000 Resent-Message-ID: <20021114140601.15310.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, michael.pronath@gmx.de Received: (qmail 13941 invoked by uid 61); 14 Nov 2002 14:00:01 -0000 Message-Id: <20021114140001.13940.qmail@sources.redhat.com> Date: Wed, 20 Nov 2002 17:58:00 -0000 From: michael.pronath@gmx.de Reply-To: michael.pronath@gmx.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8581: assert distracts -Wunreachable-code in g++-3.2 X-SW-Source: 2002-11/txt/msg00677.txt.bz2 List-Id: >Number: 8581 >Category: c++ >Synopsis: assert distracts -Wunreachable-code in g++-3.2 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Nov 14 06:06:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: michael.pronath@gmx.de >Release: 3.2.1 >Organization: >Environment: Linux glibc2 Debian >Description: the option -Wunreachable-code gives me wrong warnings about unreachable code after some assert(...) statements with g++-3.2, but not with g++-3.0 example see attachment >How-To-Repeat: g++-3.2 -Wunreachable-code testit.c >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="testit.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testit.c" I2luY2x1ZGUgPGNhc3NlcnQ+CgppbnQgeno9MTsKCmludCBtYWluKCkKewogICBhc3NlcnQoeno+ MCk7CiAgIGludCB4OwoKICAgeD00OwogICByZXR1cm4gMDsKfQo=