www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16276] New: terminated by signal SIGSEGV (Address boundary


          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 puremagic.com
          Reporter: mail 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);


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

Jul 13 2016