Bug 7435 – Regression(master):dmd crashes when 'scope(failure) debug ...' without -debug option.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-02-04T04:13:00Z
Last change time
2015-06-09T05:11:39Z
Assigned to
nobody
Creator
kekeniro2

Comments

Comment #0 by kekeniro2 — 2012-02-04T04:13:05Z
Compiling the following code without -debug option causes dmd.exe to crash. But D2.057 does not crash. import std.stdio; void main() { scope(failure) debug writeln("error"); writeln("do something"); } Environment: Windows XP 32bit DMD & libraries - D2 github trunk on Jan. 31, 2012
Comment #1 by github-bugzilla — 2012-02-04T14:52:08Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/00fa9f73f5a713670979fa0c11acc6872205cdd2 fix Issue 7435 - Regression(master):dmd crashes when 'scope(failure) debug ...' without -debug option.
Comment #2 by github-bugzilla — 2012-02-04T14:52:14Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/766bfbad17048dbe98bb5fe5df3cb0bb69982d93 fix Issue 7435 - Regression(master):dmd crashes when 'scope(failure) debug ...' without -debug option.