This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4044: vector<int[]> causes internal compiler error
- To: dave at schweisguth dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rodrigc at gcc dot gnu dot org
- Subject: Re: c++/4044: vector<int[]> causes internal compiler error
- From: rodrigc at gcc dot gnu dot org
- Date: 18 Aug 2001 01:27:44 -0000
Synopsis: vector<int[]> causes internal compiler error
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Fri Aug 17 18:27:44 2001
State-Changed-Why:
In gcc 3.0, your code does not cause an Internal Compiler Error,
but it generates a compilation error:
bug.cpp:6: instantiated from here
/usr/local/include/g++-v3/bits/stl_vector.h:142: invalid use of array with unspecified bounds
Try using a vector< int * > instead.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4044&database=gcc