This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3153: stack allocated array compiler bug



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]