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

2007-03-22 Thread ahmadyan at gmail dot com
I tried to compile the following code, but I got "internal compiler error: in
lookup_member, at cp/search.c:1288" from g++.

v.reserve(10); v.push_back(1); v.push_back(2);
copy( v.begin() , v.end(). ostream_iterator(cout, "\n") );

P.S. the correct code should have "," after v.end(). not "."


-- 
   Summary: internal compiler error on mis-spelled syntax
   Product: gcc
   Version: 3.4.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ahmadyan at gmail dot com
 GCC build triplet: 3.4.2 release


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



[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=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