c++/6273: GCC 2.95.3-5 prints internal error.
rodrigc@gcc.gnu.org
rodrigc@gcc.gnu.org
Fri Apr 12 18:23:00 GMT 2002
Synopsis: GCC 2.95.3-5 prints internal error.
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Fri Apr 12 18:20:13 2002
State-Changed-Why:
Compiling with gcc 3.1 results in the following compiler
error:
main.cpp: In instantiation of `TableMap<int>':
main.cpp:18: instantiated from here
main.cpp:6: Internal compiler error in tree_low_cst, at tree.c:3471
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
If I compile with:
g++ -Wall -pedantic-errors main.cpp
I get:
main.cpp: In instantiation of `TableMap<int>':
main.cpp:18: instantiated from here
main.cpp:9: ISO C++ forbids variable-size array
main.cpp:6: confused by earlier errors, bailing out
You can work around this problem by changing:
int items[Index_max+1];
to:
int items[Index_max];
This is a problem in gcc that should be fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6273
More information about the Gcc-bugs
mailing list