[Issue 241] New: Template function ICE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 6 08:10:55 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=241
Summary: Template function ICE
Product: D
Version: 0.162
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: oskar.linde at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list