www.digitalmars.com         C & C++   DMDScript  

D - Making dmd crash with bad code

reply "Matthew B." <mattcbro earthlink.net> writes:
I forget to put the variable identifier for binhead in this  simplified code
Instead of getting a syntax error, it crashes the compiler on my WinXP pro
Intel system.

Try to compile it using dmd -c to see what I mean.  Just thought I'd pass
this along to the compiler

struct binhead {
uint flen ;

// the offending code with a messed up declaration
int badbin(char[] fname ) {
 // the next line should have an identifier after binhead[]
 binhead[] = abinheadfunc(fname) ;
 return(0) ;

Oct 16 2003
parent "Walter" <walter digitalmars.com> writes:
Thanks, I'll take care of it. -Walter
Oct 17 2003