vector<> appears to cause seg-fault

Richard Andrews andrews@postoffice.utas.edu.au
Sun Nov 29 18:32:00 GMT 1998


  Are there known bugs with the vector<> class template?

  I have a working set of libraries I wrote which compile and run fine. I am
trying to use the vector class to work as a stack but when I construct a
vector<> of any type (whether it gets initialised or not) it causes the program
to suffer random seg-faults. The seg-faults occur at the same place each time
but changing the program around causes the seg-fault to occur at a different
random position. In particular initiallising the vector to different sizes 
changes the point of seg-fault
  If I don't define any vector then the program runs fine.

  Please reply direct to me; I am not subscribed to the list

TIA

Rich

-- 
P		| Richard Andrews
O		| Graduate Research Student (Image Compression)
W		| Electrical Engineering and Computer Science
E	L	| University of Tasmania
R	I	| BOX 252-65, Hobart, Australia
E	N	|
D	U	| email     :  <Richard.Andrews@utas.edu.au>
	X	| phone (w) :  +61 3 6226 2137
B		| web	: http://www.eecs.utas.edu.au/people/andrews
Y		|
		| "Worrying is meditation for realists"




More information about the Gcc-bugs mailing list