Thread overview
[Issue 6302] New: Function imports in debug blocks crashes compiler
Jul 13, 2011
Andrej Mitrovic
Jul 13, 2011
Andrej Mitrovic
Jan 04, 2012
Andrej Mitrovic
July 13, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6302

           Summary: Function imports in debug blocks crashes compiler
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-07-12 17:12:17 PDT ---
module dmd_crash;

void main()
{
    debug
    {
        import std.math;
        FloatingPointControl fpc;
        fpc.enableExceptions(FloatingPointControl.severeExceptions);
    }
}

> dmd -debug dmd_crash.d

---------------------------
dmd.exe - Application Error
---------------------------
The instruction at "0x00406be3" referenced memory at "0x00000030". The memory could not be "read".


Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK   Cancel
---------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 13, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6302


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |critical


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-07-12 17:45:41 PDT ---
Lowering to critical as I can use my own version statements to work around this:

void main()
{
    version (Debug)
    {
        import std.math;
        FloatingPointControl fpc;
        fpc.enableExceptions(FloatingPointControl.severeExceptions);
    }
}

> dmd -version=Debug dmd_crash.d

This will work.

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


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-01-04 07:10:47 PST ---
Fixed in 2.057, but again there's no reference to a pull request. :/

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