(In reply to comment #0)
> It is simple bug.
>
> auto main(){}
It has a simple patch. func.c, line 567 (DMD 2.032):
default:
goto Lmainerr;
}
+ if (!f->nextOf())
+ error("must return int or void");
+ else
if (f->nextOf()->ty != Tint32 && f->nextOf()->ty != Tvoid)
error("must return int or void, not %s", f->nextOf()->toChars());