Article View: gnu.g++.bug
Article #475bug in g++ / decstation
From: Dirk Grunwald
Date: Thu, 05 Oct 1989 17:06
Date: Thu, 05 Oct 1989 17:06
43 lines
1683 bytes
1683 bytes
configuration: decstation w/ collect, 1 RMS patch to reload1.c
version: most recent
symptom:
The following program produces the appended output. Obviously,
the wrong value of $i$ is being fetched at some ponit. I've
been slugging through the assembly & haven't found the problem
yet.
Dirk Grunwald -- Univ. of Colorado at Boulder (grunwald@foobar.colorado.edu)
----------bug2.cc----------
#include <stream.h>
main()
{
for (int i = 0; i < 20; i++ ) {
cerr << "i = " << i;
cerr << " and dec is " << dec(i);
cerr << " and hex " << hex(i) << "\n";
}
}
----------bug2 output----------
i = 0 and dec is 0 and hex 0
i = 0 and dec is 1 and hex 1
i = 1 and dec is 2 and hex 2
i = 2 and dec is 3 and hex 3
i = 3 and dec is 4 and hex 4
i = 4 and dec is 5 and hex 5
i = 5 and dec is 6 and hex 6
i = 6 and dec is 7 and hex 7
i = 7 and dec is 8 and hex 8
i = 8 and dec is 9 and hex 9
i = 9 and dec is 10 and hex a
i = 10 and dec is 11 and hex b
i = 11 and dec is 12 and hex c
i = 12 and dec is 13 and hex d
i = 13 and dec is 14 and hex e
i = 14 and dec is 15 and hex f
i = 15 and dec is 16 and hex 10
i = 16 and dec is 17 and hex 11
i = 17 and dec is 18 and hex 12
i = 18 and dec is 19 and hex 13
Technical Details
Message-ID:
<12421@boulder.Colorado.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!boulder!grunwald@foobar.colorado.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!boulder!grunwald@foobar.colorado.edu From: grunwald@foobar.colorado.edu (Dirk Grunwald) Newsgroups: gnu.g++.bug Subject: bug in g++ / decstation Message-ID: <12421@boulder.Colorado.EDU> Date: 5 Oct 89 17:06:56 GMT Sender: news@boulder.Colorado.EDU Reply-To: grunwald@foobar.colorado.edu Distribution: gnu Organization: University of Colorado at Boulder Lines: 43