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

--- Comment #0 from Andrej Mitrovic <> 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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to