[Issue 6308] New: Destruction of temporaries on exception causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 13 17:57:24 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6308

           Summary: Destruction of temporaries on exception causes
                    segfault
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-07-13 17:52:12 PDT ---
My reply about this issue on dmd-beta is pending moderation, but a bug about
this should probably be filed anyway.

import std.stdio;

void main()
{
    foreach (i; 0..100)
        foreach (line; File("test.d").byLine)
            {}
}

On Windows, when the above program is compiled with DMD from current git and
ran, it crashes with an unhandled exception (Windows displays two standard "has
stopped working" dialogs in succession).

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


More information about the Digitalmars-d-bugs mailing list