D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7435 - Regression(master):dmd crashes when 'scope(failure) debug ...' without -debug option.
Summary: Regression(master):dmd crashes when 'scope(failure) debug ...' without -debug...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 04:13 UTC by kekeniro2
Modified: 2015-06-09 05:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kekeniro2 2012-02-04 04:13:05 UTC
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 github-bugzilla 2012-02-04 14:52:08 UTC
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 github-bugzilla 2012-02-04 14:52:14 UTC
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.