[Issue 19501] New: stack trace is missing when throwed in module constructors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 18 16:42:28 UTC 2018


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 at puremagic.com
          Reporter: ilyayaroshenko at gmail.com

shared static this()
{
    foo();
}

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

void main()
{
}

--


More information about the Digitalmars-d-bugs mailing list