Bug 891 – Crash when compiling the following code (tested with 1.0, 1.001 and 1.002)

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-01-26T05:06:00Z
Last change time
2014-02-16T15:22:34Z
Assigned to
bugzilla
Creator
jascha

Comments

Comment #0 by jascha — 2007-01-26T05:06:08Z
class Vector(T, uint dim) { T[dim] data; } T dot(T,uint dim)(Vector!(T,dim) a, Vector!(T,dim) b) { T tmp; for ( int i = 0; i < dim; ++i ) tmp += a[i]*b[i]; return tmp; } void main() { Vector!(double,3) a,b; dot(a,b); }
Comment #1 by bugzilla — 2007-02-12T03:42:03Z
Fixed DMD 1.005