Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Dirk Grunwald
Thu, 05 Oct 1989 17:06
bug in g++ / decstation
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads