From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8845 invoked by alias); 13 Apr 2002 01:20:17 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8814 invoked by uid 61); 13 Apr 2002 01:20:15 -0000 Date: Fri, 12 Apr 2002 18:20:00 -0000 Message-ID: <20020413012015.8813.qmail@sources.redhat.com> To: comer@mailru.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: rodrigc@gcc.gnu.org Reply-To: rodrigc@gcc.gnu.org, comer@mailru.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/6273: GCC 2.95.3-5 prints internal error. X-SW-Source: 2002-04/txt/msg00685.txt.bz2 List-Id: 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': 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 for instructions. If I compile with: g++ -Wall -pedantic-errors main.cpp I get: main.cpp: In instantiation of `TableMap': 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