www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19501] New: stack trace is missing when throwed in module

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

          Issue ID: 19501
           Summary: stack trace is missing when throwed in module
                    constructors
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: ilyayaroshenko gmail.com

shared static this()
{
    foo();
}

void foo()
{
    throw new Exception("dfsd");
}

void main()
{
}

--
Dec 18 2018