From 8547485750179450246
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f5bc,6f6e97a6fdbbf44c
X-Google-Attributes: gid10f5bc,public
X-Google-Thread: 109fba,6f6e97a6fdbbf44c
X-Google-Attributes: gid109fba,public
X-Google-Thread: 1014db,6f6e97a6fdbbf44c
X-Google-Attributes: gid1014db,public
X-Google-Thread: 1149ec,6f6e97a6fdbbf44c
X-Google-Attributes: gid1149ec,public
X-Google-Thread: 110292,6f6e97a6fdbbf44c
X-Google-Attributes: gid110292,public
X-Google-Thread: 102b75,6f6e97a6fdbbf44c
X-Google-Attributes: gid102b75,public
X-Google-Thread: f78e5,6f6e97a6fdbbf44c
X-Google-Attributes: gidf78e5,public
From: sdriscol@oclc.org (Steve Driscoll)
Subject: Re: And you thought that the Pentium bug was bad!  (Get a load of this!)
Date: 1995/06/22
Message-ID: <3sbnd5$g0@oclc.org>#1/1
X-Deja-AN: 104873931
distribution: world
references: <3s2las$1br@hustle.rahul.net> <3s476i$led@bmdhh222.bnr.ca> <3sa9b3$cb1@horus.infinet.com>
followup-to: comp.std.c,comp.std.c++,comp.lang.c,comp.lang.c++,comp.sys.intel,comp.arch,comp.software.testing
organization: OCLC Online Computer Library Center, Inc.
newsgroups: comp.std.c,comp.std.c++,comp.lang.c,comp.lang.c++,comp.sys.intel,comp.arch,comp.software.testing

Mark (mal@infinet.com) wrote:
: : : double d = 0.9;
: : : int
: : : main ()
: : : {
: : :     double d = 0.8;
: : :     {
: : :         extern double d;
: : :         printf ("%f\n", d);
: : :         return 0;
: : :     }
: : : }
: : : This program *should* print 0.900000, and with most compilers, it does.
: : : But when compiled with one particular popular free C compiler, this
: : : program will print 0.800000.  

Let me see if I have this straight.  You're not reporting a problem 
with computation, but a problem with scoping variables with 
identical names.  Right?




