Thread overview |
---|
September 19, 2007 [Issue 1518] New: Crash using 'scope', 'with' and undefined 'RegExp' | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1518 Summary: Crash using 'scope', 'with' and undefined 'RegExp' Product: D Version: 2.004 Platform: PC OS/Version: Windows Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: regan@netmail.co.nz //Compiling this results in a DMD crash. void main() { int i; scope(exit) i++; with(new RegExp(``)) {} } E:\D\src\tmp>dmd -v bug002.d parse bug002 semantic bug002 import object (E:\D\dmd\bin\..\src\phobos\object.d) semantic2 bug002 semantic3 bug002 bug002.d(5): Error: identifier 'RegExp' is not defined bug002.d(5): Error: RegExp is used as a type bug002.d(5): Error: new can only create structs, dynamic arrays or class objects , not void's bug002.d(5): Error: with expressions must be class objects, not 'void*' <crash> -- |
September 30, 2007 [Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp' | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1518 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows |All ------- Comment #1 from thomas-dloop@kuehne.cn 2007-09-30 05:01 ------- Added to DStress as http://dstress.kuehne.cn/run/s/scope_19_A.d http://dstress.kuehne.cn/nocompile/s/scope_19_B.d http://dstress.kuehne.cn/run/s/scope_19_C.d http://dstress.kuehne.cn/run/s/scope_19_D.d http://dstress.kuehne.cn/nocompile/s/scope_19_E.d http://dstress.kuehne.cn/nocompile/s/scope_19_F.d -- |
November 09, 2007 [Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp' | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1518 ------- Comment #2 from davidl@126.com 2007-11-08 20:49 ------- a patch to fix statement.c 3213 int TryFinallyStatement::fallOffEnd() { if (body) return body->fallOffEnd(); else return TRUE; } -- |
July 13, 2008 [Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp' | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1518 ------- Comment #3 from kamm-removethis@incasoftware.de 2008-07-13 01:44 ------- This error had been fixed in DMD 1.029 or before by applying the patch. A version between 1.030 and 1.033 has introduced the regression that http://dstress.kuehne.cn/nocompile/s/scope_19_B.d segfaults on invalid again. -- |
December 25, 2008 [Issue 1518] Crash using 'scope', 'with' and undefined 'RegExp' | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1518 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #4 from bugzilla@digitalmars.com 2008-12-25 04:37 ------- Fixed dmd 1.038 amd 2.022 -- |
Copyright © 1999-2021 by the D Language Foundation