[Issue 6774] New: Assertion failure: '0' on line 1117 in file 'glue.c'
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 5 16:57:29 PDT 2011
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: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list