Thread overview |
---|
August 01, 2008 [Issue 2259] New: Assertion failure: '0' on line 122 in file 'statement.c' | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2259 Summary: Assertion failure: '0' on line 122 in file 'statement.c' Product: D Version: 1.033 Platform: PC OS/Version: Windows Status: NEW Keywords: EH Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: joel.bjorkman@gmail.com The DMD compiler crashes when I compile the code below (using DMD v1.033, Windows XP). The compiler do identify the first error: main.d(8): Error: foreach: void is not an aggregate type but then I get an assertion failure: Assertion failure: '0' on line 122 in file 'statement.c' This is perhaps a strange error and I don't know if anyone else have seen it. I do get the error even though I don't use the -debug flag. The error doesn't occur if I remove the "debug Object foo"-line. module main; public void bar() { } void main() { foreach(Object o ; bar()){ debug Object foo = null; //error } } regards Joel -- |
August 01, 2008 [Issue 2259] Assertion failure: '0' on line 122 in file 'statement.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2259 ------- Comment #1 from 2korden@gmail.com 2008-08-01 08:44 ------- *** Bug 2261 has been marked as a duplicate of this bug. *** -- |
August 14, 2008 [Issue 2259] Assertion failure: '0' on line 122 in file 'statement.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2259 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla@digitalmars.com 2008-08-14 03:03 ------- Fixed dmd 1.034 and 2.018 -- |
Copyright © 1999-2021 by the D Language Foundation