D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3283 - glue.c assertion with no info
Summary: glue.c assertion with no info
Status: RESOLVED DUPLICATE of issue 2962
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 critical
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2009-09-03 03:03 UTC by Alvaro
Modified: 2015-06-09 01:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Alvaro 2009-09-03 03:03:12 UTC
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 Lars T. Kyllingstad 2009-09-03 03:27:57 UTC
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 Don 2009-09-03 04:04:09 UTC
Compile with -v, to get an idea of where it is happening.
Comment 3 Alvaro 2009-09-03 04:49:16 UTC
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 Don 2009-09-13 03:39:51 UTC
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 ***