digitalmars.D.bugs - [Issue 682] New: dmd segfault with vararg template
- d-bugmail puremagic.com (35/35) Dec 12 2006 http://d.puremagic.com/issues/show_bug.cgi?id=682
- d-bugmail puremagic.com (9/9) Dec 27 2006 http://d.puremagic.com/issues/show_bug.cgi?id=682
http://d.puremagic.com/issues/show_bug.cgi?id=682 Summary: dmd segfault with vararg template Product: D Version: 0.177 Platform: PC OS/Version: Windows Status: NEW Severity: critical Priority: P1 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: davidl 126.com import std.stdio; template a(char[]name, T...){ char[] a(T t){ char[] localchar; foreach(a;t) { localchar=typeof(a).mangleof; } return localchar; } } void main() { a!("Adf"[],"afd",1234).a("Adf"[],"adf",1234); } dmd output: global.errors = 0, gag = 0 003CF3F4 .. type=char[] e1=003C80A0 003C80A0 string type=char[3] Assertion failure: '0' on line 775 in file 'expression.c' abnormal program termination dmd throw me: --
Dec 12 2006
http://d.puremagic.com/issues/show_bug.cgi?id=682 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD 0.178 --
Dec 27 2006