[Issue 16276] New: terminated by signal SIGSEGV (Address boundary error)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 13 13:15:45 PDT 2016


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

          Issue ID: 16276
           Summary: terminated by signal SIGSEGV (Address boundary error)
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: mail at skoppe.eu

I was trying to run http://code.dlang.org/packages/d-option but got a
"terminated by signal SIGSEGV (Address boundary error)" with dmd v2.071.1. I
suppose it is a regression, but that is assuming the library compiled during
the last commit (~1 year ago).

I ran dustmite to get min. test case:

struct Option(T)
{
  auto opDispatch(Args...)() {
    alias R = typeof(MethodCall);
None!R;
  }

}

Option!T Some(T)(T )
;
T Some()() {
}
T None(T)()
{
}

unittest {
Some(1).flatten ;
}

I know the reduced code doesn't make any sense anymore. But this is what
triggers the SIGSEGV

--


More information about the Digitalmars-d-bugs mailing list