--- Comment #2 from ahmadyan at gmail dot com 2007-03-23 09:46 ---
Created an attachment (id=13259)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13259&action=view)
the ii file of the problem.
the following code can trigger the bug in g++ version 4.2 with the following
specs:
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls
--enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared
--e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x
--enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter
--enable-hash-synchroniz
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)
=
#include
#include
#include
using namespace std;
int main(){
vector v ;
v.reserve(10);
v.push_back(1); v.push_back(2);
copy( v.begin() , v.end(). ostream_iterator(cout, "\n") );
return 0 ;
}
==
P.S. again, the above code has a syntax error, just after the v.end() there
should be a "," not "."
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31315