From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21612 invoked by alias); 10 Oct 2002 13:16:04 -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 21594 invoked by uid 71); 10 Oct 2002 13:16:04 -0000 Date: Thu, 10 Oct 2002 06:16:00 -0000 Message-ID: <20021010131604.21593.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Ritesh Goel" Subject: Re: c++/8184: undefined variable gcc3.0 Reply-To: "Ritesh Goel" X-SW-Source: 2002-10/txt/msg00364.txt.bz2 List-Id: The following reply was made to PR c++/8184; it has been noted by GNATS. From: "Ritesh Goel" To: , , , , Cc: Subject: Re: c++/8184: undefined variable gcc3.0 Date: Fri, 8 Nov 2002 18:46:00 +0530 Thanx for ur immediate response , i really appreciate that . Is by [6.4]/3 ur mean is ISO standards 6.4 point 3 . I checked the ISO standards 6.4 point 3 . It is a saying that variable is in scope from its point of declaration until the end of substatements controlled by the condition . but in particular example if ( int i == 5) { } i = 9 ; here "i" is not in scope of if statement . and also if u try to assign i to some other variable there it says error . int j ; if ( int i == 6) {} j = i; i am in doubt regarding this , plzz clarify it . thanx and regards ritesh ----- Original Message ----- From: To: ; ; ; Sent: Thursday, October 10, 2002 5:41 PM Subject: Re: c++/8184: undefined variable gcc3.0 > Synopsis: undefined variable gcc3.0 > > State-Changed-From-To: open->closed > State-Changed-By: nathan > State-Changed-When: Thu Oct 10 05:11:55 2002 > State-Changed-Why: > not a bug. [6.4]/3 allows this strange behaviour > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p r=8184