This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3153: stack allocated array compiler bug
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3153: stack allocated array compiler bug
- From: erik at infocruiser dot com
- Date: 13 Jun 2001 00:56:37 -0000
- Cc: allen at infocruiser dot com
- Reply-To: erik at infocruiser dot com
>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: