www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 82] New: Crash when compiled with gdc (not dmd). Related to

http://bugzilla.gdcproject.org/show_bug.cgi?id=82

             Bug #: 82
           Summary: Crash when compiled with gdc (not dmd).  Related to
                    direntry? or with?
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: libgdruntime
        AssignedTo: ibuclaw gdcproject.org
        ReportedBy: orcwog gmx.com


//gdc --version
//gdc (Debian 4.8.2-1) 4.8.2

import std.stdio;
import std.file;

struct tmp {
        string s;
        int i;
}
tmp[int] thash;

void main() {
        foreach (DirEntry e; dirEntries(".",SpanMode.breadth)) {
                thash[0] = tmp.init;
                with (thash[0]) {
                        i = 5;
                }
        }
}

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
Oct 20 2013