GDB version: GNU gdb 5.0
Type of machine: Digital Alpha Personal Worksation 500 au
OS version: OSF1 joyds1.joensuu.fi V4.0 564.32 alpha
GCC version used to compile GDB: 2.95.2
GCC version used to compile the program I am debugging: 2.95.2

Command to use to comple the program: gcc -O2 -g 0.cc -o 0

(The file 0.cc is at the end of this message.)


Input script:

>gdb 0
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alphaev56-dec-osf4.0c"...
(gdb) break 11
Breakpoint 1 at 0x12000bd2c: file 
/usr/local/gcc-2.95.2/lib/gcc-lib/alphaev56-dec-osf4.0c/2.95.2/../../../../include/g++-3/stl_vector.h,
 line 11.
(gdb) r


Then the computer crashes and I must restart it with the reset button.



Here is the file 0.cc


#include <vector>
#include <stream.h>

int main()
{
  const int N = 10;
  vector<double> v(N, 1.0);


  for (size_t i = 0; i < N; ++i) {
    cout.form ("%2d %8.4f\n", i, v[i]);  <================== LINE 11
  }

  return 0;
}

Reply via email to