Assertion failure: '!vthis->csym' on line 703 in file 'glue.c'

David Nadlinger see at klickverbot.at
Sat Mar 26 15:14:58 PDT 2011


On 3/26/11 11:08 PM, bearophile wrote:
> I suggest to copy your code, and then keep removing lines from your copy, making sure it keep showing the same compiler error. In some time you will probably be able to produce a small program, fit for this newsgroup or even for Bugzilla. (There are tools to do this reduction automatically in Python, I think).

You don't necessarily need fancy tools to do that – as I recently 
pointed out in another thread, the Tigris »delta« tool worked fine for 
me on several occasions (http://delta.tigris.org/). Just write a simple 
shell script looking for the error message in the compiler output, and 
delta will try to automatically reduce the file for you.

There is some room for improvement though when you have an actual 
lexer/parser available for heuristically determining what pieces of code 
to delete – this might be a nice demonstration project for a D parsing 
library.

David


More information about the Digitalmars-d-learn mailing list