This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5919: g++3.0.4 segfaults on compiling
- From: he at marel dot is
- To: gcc-gnats at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 12:20:11 GMT
- Subject: c++/5919: g++3.0.4 segfaults on compiling
>Number: 5919
>Category: c++
>Synopsis: g++3.0.4 segfaults on compiling
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Mar 12 04:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Hrafnkell Eiríksson
>Release: 3.0.4
>Organization:
>Environment:
System: Linux marel2023 2.4.9-31.1 #1 Mon Mar 11 06:52:10 EST 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.0.4/configure --prefix=/usr/local/gcc3 --enable-threading=posix
>Description:
g++3.0.4 gives an internal compiler error when compiling the
attached code
>How-To-Repeat:
Try to compile the attached code
#include<vector>
#include<algorithm>
int main() {
std::vector<int> v1, v2;
int score[v1.size()+1][v2.size()+1];
std::fill(score, score+(v1.size()+1)*(v2.size()+1), 0);
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: