[Bug 25] New: DMD segfault on foreach in template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 8 03:58:02 PST 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=25

           Summary: DMD segfault on foreach in template
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: walter at digitalmars.com
        ReportedBy: oskar.linde at gmail.com


This bug is present in 0.149. It was not available in the version list.

template crash(T) {
        void crash(T t) {
                foreach(u;t) {}
        }
}

void main() {
        crash(null);
}

Causes DMD 0.149 linux to segfault. (It segfaults on the non-IFTI version too)


-- 




More information about the Digitalmars-d-bugs mailing list