← Back to index
|
Original Bugzilla link
Bug 241 – Template function ICE
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-07-06T10:10:00Z
Last change time
2014-02-15T13:18:39Z
Assigned to
bugzilla
Creator
oskar.linde
Comments
Comment #0
by oskar.linde — 2006-07-06T10:10:53Z
T func(T, T c = 1)(T x) { return x * c; } void main() { func(1.0); } Generates (with DMD 0.162 linux): dmd: template.c:622: void TemplateDeclaration::declareParameter(Scope*, TemplateParameter*, Object*): Assertion `0' failed.
Comment #1
by jpelcis — 2006-07-18T16:39:55Z
Fixed DMD 0.163.