This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2240: internal compiler error on static arrays inside templates
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2240: internal compiler error on static arrays inside templates
- From: larry at pink dot dhs dot org
- Date: 9 Mar 2001 05:29:53 -0000
- Reply-To: larry at pink dot dhs dot org
>Number: 2240
>Category: c++
>Synopsis: internal compiler error on static arrays inside templates
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 08 21:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: larry@pink.dhs.org
>Release: 2.95.2
>Organization:
>Environment:
linux mandrake x86 OR osf1 alpha
>Description:
"Internal compiler error" whenever I declare a
static const array that is initialized useing arithmatic
operators.
static const foo[] = {1, 2, 3}
does not trigger bug
static const foo[4] = {-1}
does trigger it
>How-To-Repeat:
compile quux.cc
>Fix:
I have no idea
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="quux.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="quux.cc"
dGVtcGxhdGU8Y2xhc3MgVD4gY2xhc3MgZm9vIHsKICBjb25zdCBzdGF0aWMgIGludCAgYmF6W10g
ID0gey0xfSA7Cn07Cg==