Bug 8066 – ICE on missing return statement if invariant is present
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-08T05:08:00Z
Last change time
2012-05-10T17:13:10Z
Keywords
ice, pull
Assigned to
nobody
Creator
hoganmeier
Comments
Comment #0 by hoganmeier — 2012-05-08T05:08:16Z
struct CLCommandQueue
{
invariant() {}
//private:
int enqueueNativeKernel()
{
assert(0, "implement me");
}
}
$ dmd -c commandqueue.d
dmd: func.c:1557: virtual void FuncDeclaration::semantic3(Scope *): Assertion `vresult' failed.
Works without the invariant or with the private.
Might have to do with the fix for http://d.puremagic.com/issues/show_bug.cgi?id=5039, but that's just a guess.