fox@CS.COLUMBIA.EDU (David Fox) (03/21/89)
On the sun-4 I compiled the following program with g++-1.34.1:
class Box {
static int boxId;
protected:
int x;
Box() : x(++boxId) {}
};
main()
{
Box b;
int x = 0;
x = x + 1;
}
And when I try to print the value of b I get the following message:
(gdb) break main
Breakpoint 1 at 0x2188: file bug.cc, line 11.
(gdb) run
Starting program: /u/tom/fox/src/text/bug
Bpt 1, main () (bug.cc line 11)
(gdb) p b
$1 = {boxId = ptrace: I/O error.
Cannot read memory: address 0x0 out of bounds.
(gdb)
David Fox
fox@cs.columbia.edutiemann@YAHI.STANFORD.EDU (Michael Tiemann) (04/04/89)
I have fixed this problem. New release of GNU C++ (1.34.2) and GDB+ (3.1.2) are available by anonymous ftp from labrea.stanford.edu and yahi.stanford.edu. Compressed diffs from previous versions are also available from both sites. If space permits on prep, I am sure that these will show up there. Michael