public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "Ritesh Goel" <riteshg@pune.tcs.co.in> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/8184: undefined variable gcc3.0 Date: Thu, 10 Oct 2002 06:16:00 -0000 [thread overview] Message-ID: <20021010131604.21593.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/8184; it has been noted by GNATS. From: "Ritesh Goel" <riteshg@pune.tcs.co.in> To: <nathan@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org> 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: <nathan@gcc.gnu.org> To: <gcc-bugs@gcc.gnu.org>; <gcc-prs@gcc.gnu.org>; <nobody@gcc.gnu.org>; <riteshg@pune.tcs.co.in> 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
next reply other threads:[~2002-10-10 13:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-10-10 6:16 Ritesh Goel [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-10-10 5:11 nathan 2002-10-10 4:56 riteshg
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20021010131604.21593.qmail@sources.redhat.com \ --to=riteshg@pune.tcs.co.in \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).