Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 15, 2010 [Issue 4873] New: Assertion failure: '0' on line 1483 in file 'expression.c' | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4873 Summary: Assertion failure: '0' on line 1483 in file 'expression.c' Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: dfj1esp02@sneakemail.com --- Comment #0 from Sobirari Muhomori <dfj1esp02@sneakemail.com> 2010-09-15 14:12:39 PDT --- --- test.d --- struct HANDLE { size_t Value; this(void *ptrValue) { Value=ptrValue; } } enum HANDLE INVALID_HANDLE_VALUE = HANDLE(-1); static assert(INVALID_HANDLE_VALUE.Value == -1); class File { HANDLE Handle=INVALID_HANDLE_VALUE; } --- >dmd -c test.d -w -o- -debug --- e = 00A547EC, ty = 37 _error_ 009E16D8 Assertion failure: '0' on line 1483 in file 'expression.c' abnormal program termination --- Digital Mars D Compiler v2.048 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 15, 2010 [Issue 4873] Assertion failure: '0' on line 1483 in file 'expression.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sobirari Muhomori | http://d.puremagic.com/issues/show_bug.cgi?id=4873 --- Comment #1 from Sobirari Muhomori <dfj1esp02@sneakemail.com> 2010-09-15 14:13:32 PDT --- workaround: remove assert -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 05, 2010 [Issue 4873] Assertion failure: '0' on line 1483 in file 'expression.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sobirari Muhomori | http://d.puremagic.com/issues/show_bug.cgi?id=4873 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-10-05 12:30:28 PDT --- PATCH: staticassert.c, line 58. void StaticAssert::semantic2(Scope *sc) { Expression *e; //printf("StaticAssert::semantic2() %s\n", toChars()); e = exp->semantic(sc); + if (e->op == TOKerror) + return; e = e->optimize(WANTvalue | WANTinterpret); if (e->isBool(FALSE)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 08, 2010 [Issue 4873] Assertion failure: '0' on line 1483 in file 'expression.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sobirari Muhomori | http://d.puremagic.com/issues/show_bug.cgi?id=4873 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2010-10-08 14:45:08 PDT --- http://www.dsource.org/projects/dmd/changeset/711 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation