I got this error when trying to port Hybrid library to D2:
dmd2.bin: glue.c:626: virtual void FuncDeclaration::toObjFile(int): Assertion `!vthis->csym' failed.
I got it with 2.031, and now also with 2.032.
Is virtually impossible to figure out which part of my code/the old library code is failing to assert, it could be anywhere. That is the only info output by the compiler.
Comment #1 by bugzilla — 2009-09-03T03:27:57Z
I had a very similar problem porting some of my old code from D1 to D2. You should check out bug 2962. It's probably related, if not the same. Perhaps some of the comments in there will help you narrow it down.
Comment #2 by clugdbug — 2009-09-03T04:04:09Z
Compile with -v, to get an idea of where it is happening.
Comment #3 by alvcastro — 2009-09-03T04:49:16Z
Ok thanks for your tips! The task doesn't seem obvious, as I get a huge list of functions, but at least I get something to work with.
Comment #4 by clugdbug — 2009-09-13T03:39:51Z
Closing this as a duplicate of bug 2962, since it has no test case and otherwise appears to be the same. Reopen if you are able to establish that it is different. (BTW, the patch in 2962 will help in tracking down the bug).
*** This issue has been marked as a duplicate of issue 2962 ***