www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7435] New: Regression(master):dmd crashes when 'scope(failure) debug ...' without -debug option.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7435

           Summary: Regression(master):dmd crashes when 'scope(failure)
                    debug ...' without -debug option.
           Product: D
           Version: D1 & D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: kekeniro2 yahoo.co.jp



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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7435


kekeniro2 yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7435




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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7435




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.


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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2012