c++/2240: internal compiler error on static arrays inside templates
larry@pink.dhs.org
larry@pink.dhs.org
Thu Mar 8 21:36:00 GMT 2001
>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==
More information about the Gcc-bugs
mailing list