Bug 404 – Regression: missing source location in "Error: array initializers as expressions are not allowed"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-06T02:23:18Z
Last change time
2022-03-03T10:17:46Z
Keywords
diagnostic
Assigned to
Walter Bright
Creator
Thomas Kühne
Comments
Comment #0 by thomas-dloop — 2006-10-06T02:23:18Z
#
# int main(){
# char a[1] = [int.max:0,1];
# return 0;
# }
#
dmd-0.167:
a.d(3): variable sample.main.a is not a static and cannot have static initializer
dmd-0.168:
Error: array initializers as expressions are not allowed
test case:
http://dstress.kuehne.cn/nocompile/array_initialization_13.d
Comment #1 by bugzilla — 2006-10-10T03:31:41Z
Fixed DMD 0.169
Comment #2 by dlang-bot — 2022-03-03T10:17:46Z
dlang/dlang.org pull request #3169 "[prman.dd] [intro.dd] [spec.ddoc] Few small fix." was merged into master:
- aec69051546e7e4fac11f57f4a9ef7168592dbb3 by devmynote:
Translate TITLE
Fix 404, sitemap
https://github.com/dlang/dlang.org/pull/3169