Bug #6592 2006-02-26 18:25

zingam

Crash when compiling with DMD.

I have experienced crashes in two separate cases, when compiling with DMD. The second one I was able to locate it to the following code, which is not correct:

    struct VideoMode { int width; int height; };
    enum VideoModes
    {
        VideoMode  vm640x480 = {  width:640, height:480 },
        VideoMode  vm800x600 = {  width:800, height:600 },
        VideoMode vm1024x768 = { width:1024, height:768 },
        VideoMode vm1280x800 = { width:1280, height:800 }
    }


The compiler log (when run from the command prompt) for these lines is:

system.d(17): found 'vm640x480' when expecting ','
system.d(17): enum member expected
system.d(17): enum member expected
system.d(17): found ':' when expecting ','
system.d(17): enum member expected
system.d(17): enum member expected
system.d(17): found ':' when expecting ','
system.d(17): enum member expected
system.d(17): Declaration expected, not ','


I'm not sure if this code it the only reason for the crash but when I comment it out, there is no crash.

The second crash was something like:

I forgot to add () after

...
this         // constructor
{

}
...
printf

printf - was not finished. But which one of the two caused the crash I don't know.

The compiler itself doesn't crash, just Code::Blocks!
Category
 
Group
 
Status
Closed
Close date
2006-09-08 11:47
Assigned to
 
mandrav 2006-09-08 11:47

Does this bug still persist?