Bug 6145 – Meaningless second error message for complex size of static array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-06-10T20:09:00Z
Last change time
2015-06-09T05:11:44Z
Keywords
diagnostic, patch
Assigned to
nobody
Creator
yebblies

Comments

Comment #0 by yebblies — 2011-06-10T20:09:02Z
char[1+1i] a; testx.d(1): Error: cannot implicitly convert expression ((1+1i)) of type cdouble to uint testx.d(1): Error: index 1 overflow for static array
Comment #1 by yebblies — 2011-06-10T20:13:44Z
Comment #2 by bugzilla — 2011-06-11T18:08:57Z