Bug 685 – dmd assertion failure

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-12-13T01:47:00Z
Last change time
2014-02-15T13:19:57Z
Assigned to
bugzilla
Creator
davidl

Comments

Comment #0 by davidl — 2006-12-13T01:47:58Z
import std.stdio; template a(AnotherT,char[] name,T...){ AnotherT a(M...)(M){ AnotherT localchar; foreach(a;T) { writefln(`hello`); localchar~=a.mangleof; } return cast(AnotherT)localchar; } } void main() { char[] b="adf"; uint i=123; char[3] c="Adf"; writefln(a!(typeof(b),"Adf")()); } dmd output: Assertion failure: 'arg->ident' on line 747 in file 'func.c' abnormal program termination
Comment #1 by bugzilla — 2006-12-27T02:04:25Z
Fixed DMD 0.178
Comment #2 by thomas-dloop — 2006-12-30T09:50:02Z