www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14552] New: SIGSEGV with compile construction nested class in

https://issues.dlang.org/show_bug.cgi?id=14552

          Issue ID: 14552
           Summary: SIGSEGV with compile construction nested class in
                    predicate
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: japplegame gmail.com

DMD crashes (SIGSEGV) when compiles this code:

import std.algorithm : map;
class Outer {
    auto test() {
        return [1, 2, 3].map!( j => new Inner );
    }
    class Inner {}
}

If to change declaration Inner class to static, code compiles well.

DMD64 D Compiler v2.067.1
CentOS 7 x86_64

--
May 07 2015