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

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 891 - Crash when compiling the following code (tested with 1.0, 1.001 and 1.002)
Summary: Crash when compiling the following code (tested with 1.0, 1.001 and 1.002)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 critical
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年01月26日 05:06 UTC by Jascha Wetzel
Modified: 2014年02月16日 15:22 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Jascha Wetzel 2007年01月26日 05:06:08 UTC
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 Walter Bright 2007年02月12日 03:42:03 UTC
Fixed DMD 1.005


AltStyle によって変換されたページ (->オリジナル) /