[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC STL implementation bug?

From: Abhisek Pamecha
Subject: GCC STL implementation bug?
Date: Tue, 23 Sep 2003 15:44:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20010901

I am not sure where to mail a possible g++ STL bug so I am sending it to this list. Please pardon if this was irritating.

 g++ -v
Reading specs from /usr/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.0.2/specs
Configured with: ./configure
Thread model: single
gcc version 3.0.2

stl version g++-v3

Here I try to reverse a vector and append to itself. It fails mysteriously if the vectors's size intially is more than 17 and
adds junk to the last element in the new vector.
So if the initial vector is
1 2 3 4
and the desired output is
1 2 3 4 3 2 1
but the actual output is
1 2 3 4 3 2 <junk>

this happens ONLY if the vector's initial size is > 17.

Attached is a demo file FYR.

Please feel free to contact me in case you need more info.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]