From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27369 invoked by alias); 8 Jan 2003 10:56:20 -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 27355 invoked by uid 71); 8 Jan 2003 10:56:18 -0000 Date: Wed, 08 Jan 2003 10:56:00 -0000 Message-ID: <20030108105618.27354.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Volker Reichelt Subject: Re: c/5582: warn about using the extension "int x=x;" Reply-To: Volker Reichelt X-SW-Source: 2003-01/txt/msg00530.txt.bz2 List-Id: The following reply was made to PR c/5582; it has been noted by GNATS. From: Volker Reichelt To: pcarlini@unitus.it, aoliva@redhat.com, dewar@gnat.com, gcc-gnats@gcc.gnu.org, coola@ngs.ru, gcc-bugs@gcc.gnu.org, bangerth@dealii.org Cc: Subject: Re: c/5582: warn about using the extension "int x=x;" Date: Wed, 8 Jan 2003 12:50:22 +0100 Just for the sake of completeness: gcc issues an error if you just try to compile "int x=x;". You get no error/warning, if you try to compile the code inside a function, ie. "void foo() { int x=x; }". But that's not a gcc extension, just a missing warning about the use of an uninitialized variable. Regards, Volker http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5582