May 27, 2004 DMD crash on for(;;) construct | ||||
---|---|---|---|---|
| ||||
The compiler (0.90) segfaults on Linux trying to compile the this code: class X { final synchronized void foo() { for(;;) { } //while(true) { //} } } int main(char[][] args) { X x = new X; x.foo(); return 0; } Mike Swieton __ We're weirder for being able to pass for normal. - The Pet Rock |
May 27, 2004 Re: DMD crash on for(;;) construct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Swieton | that's funny. I was just going to report the same thing. The concurrent lib
uses that all over the place and it took my forever to narrow it down. I
imagine you went through the same process.
I've also noticed the compiler is very picky about the order of declarations
when you start throwing in mixins and nested classes and such. I haven't
figured out any good tests cases though. If one throws in aliases to try to
help I typically get the assert failure at line 2567 about
DYNCAST_IDENTIFIER.
Mike Swieton wrote:
>
> The compiler (0.90) segfaults on Linux trying to compile the this code:
>
> class X
> {
> final synchronized void foo()
> {
> for(;;) {
> }
> //while(true) {
> //}
> }
> }
>
> int main(char[][] args)
> {
> X x = new X;
>
> x.foo();
>
> return 0;
> }
>
> Mike Swieton
> __
> We're weirder for being able to pass for normal.
> - The Pet Rock
|
Copyright © 1999-2021 by the D Language Foundation