[Bug c++/31315] internal compiler error on mis-spelled syntax

2007-03-23 Thread ahmadyan at gmail dot com


--- 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=13259action=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 iostream
#include vector
#include iterator
using namespace std;

int main(){
vectorint v ;
v.reserve(10);
v.push_back(1); v.push_back(2);
copy( v.begin() , v.end(). ostream_iteratorint(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



[Bug c++/31315] internal compiler error on mis-spelled syntax

2007-03-23 Thread bangerth at dealii dot org


--- Comment #3 from bangerth at dealii dot org  2007-03-23 14:09 ---
Confirmed, but this has already been fixed after release 3.4.4 and
before release 3.4.5. None of the newer releases are affected.

W.


-- 

bangerth at dealii dot org changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |3.4.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31315



[Bug c++/31315] internal compiler error on mis-spelled syntax

2007-03-22 Thread bangerth at dealii dot org


--- Comment #1 from bangerth at dealii dot org  2007-03-23 02:28 ---
You need to post a complete testcase, including all include files etc.
I can't reproduce the problem with the snippet you posted.

W.


-- 

bangerth at dealii dot org changed:

   What|Removed |Added

 CC||bangerth at dealii dot org
 Status|UNCONFIRMED |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31315