[Issue 774] New: indexing / slicing a const arrays causes: "Error: non-constant expression"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 30 05:49:52 PST 2006
http://d.puremagic.com/issues/show_bug.cgi?id=774
Summary: indexing / slicing a const arrays causes: "Error: non-
constant expression"
Product: D
Version: 0.178
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
works:
#
# const A = (["abc", "789"])[0];
#
fails:
#
# const B = ["abc", "789"];
# const C = B[0];
#
--
More information about the Digitalmars-d-bugs
mailing list