Created attachment 1531
reduced source code
I've reduced this code with DustMite and attached it to the issue.
Compile using `dmd -main -unittest sqlite3.d`
Output:
> dmd -main -unittest sqlite3.d
MapResult(Result(0LU, 0LU))
dmd: struct.c:929: virtual void StructDeclaration::semantic(Scope*): Assertion `type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.
fish: “dmd -main -unittest sqlite3.d” terminated by signal SIGABRT (Abort)
Comment #1 by k.hara.pg — 2015-07-24T03:50:42Z
The issue does not happen with 2.068-beta1..
I guess the root issue had had a problem in error handling for the template instantiation. I think it has been fixed by:
https://github.com/D-Programming-Language/dmd/pull/4464