http://d.puremagic.com/issues/show_bug.cgi?id=6774
Summary: Assertion failure: '0' on line 1117 in file 'glue.c' Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-10-05 16:56:46 PDT --- This is derived from a ~2000 line module, I'm beat: import std.traits; struct PointImpl(T) { @property auto test() { return PointImpl!int(); } } struct Wrapper(T) { T payload; auto test() { static if (is(ReturnType!(T.test) == void)) { } return payload.test; } } Wrapper!(PointImpl!int) point; void main() { auto x = point.test; } It's hard to explain the point of this code like this, but anyway I get back: Assertion failure: '0' on line 1117 in file 'glue.c' If I remove the `static if` statement the assertion goes away. I also had some Expression assertion errors, but it's too damn tiring to produce a minimal test-case. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------