From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14651 invoked by alias); 29 Apr 2003 14:36: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 14612 invoked by uid 71); 29 Apr 2003 14:36:01 -0000 Date: Tue, 29 Apr 2003 14:36:00 -0000 Message-ID: <20030429143601.14610.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/10538: gcc 3.2.3 does not issue a warning for "int a = a + 1" statements (fwd) Reply-To: Wolfgang Bangerth X-SW-Source: 2003-04/txt/msg01345.txt.bz2 List-Id: The following reply was made to PR c++/10538; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/10538: gcc 3.2.3 does not issue a warning for "int a = a + 1" statements (fwd) Date: Tue, 29 Apr 2003 09:30:29 -0500 (CDT) ---------- Forwarded message ---------- Date: Tue, 29 Apr 2003 16:35:46 +0200 From: Remo Inverardi To: bangerth@dealii.org Subject: Re: c++/10538: gcc 3.2.3 does not issue a warning for "int a = a + 1" statements > You actually use a documented gcc extension to _suppress_ the > warning. I don't think I have an opinion about the usefulness > of this extension, so leave it to others to decide what to do > with the report. I just gave the current GCC documentation a second look, but I was not able to identify the extension your referring to (?) ... what's more, I just tried compiling the same code with -ansi, -pedantic, and -Wall options, neither of which gave me a warning ...