From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik@infocruiser.com To: gcc-gnats@gcc.gnu.org Cc: allen@infocruiser.com Subject: c++/3153: stack allocated array compiler bug Date: Tue, 12 Jun 2001 18:06:00 -0000 Message-id: <20010613005637.21443.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00523.html List-Id: >Number: 3153 >Category: c++ >Synopsis: stack allocated array compiler bug >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue Jun 12 18:06:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Erik Smith >Release: 2.95.3 >Organization: >Environment: Red Hat Linux 2.4.X >Description: The right combination of templates and a static array allocation causes a compiler bug. I created a 35 line program which reproduces the result (attached). There are no includes at all and is unrelated to the standard library. The GCC error is: Internal compiler error in `assign_stack_temp_for_type', at function.c:937 >How-To-Repeat: gcc -c bug.cpp >Fix: Unknown >Release-Note: >Audit-Trail: >Unformatted: