D - Making dmd crash with bad code
- "Matthew B." <mattcbro earthlink.net> Oct 16 2003
- "Walter" <walter digitalmars.com> Oct 17 2003
I forget to put the variable identifier for binhead in this simplified code
snippet.
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
developers.
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) ;
}
Regards,
Oct 16 2003








"Walter" <walter digitalmars.com>