c++/4044: vector<int[]> causes internal compiler error

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Fri Aug 17 18:27:00 GMT 2001


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



More information about the Gcc-bugs mailing list