D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16276 - terminated by signal SIGSEGV (Address boundary error)
Summary: terminated by signal SIGSEGV (Address boundary error)
Status: RESOLVED DUPLICATE of issue 16188
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P1 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-13 20:15 UTC by Sebastiaan Koppe
Modified: 2016-07-13 20:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Sebastiaan Koppe 2016-07-13 20:15:45 UTC
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
Comment 1 ag0aep6g 2016-07-13 20:30:07 UTC
Duplicate of issue 16188 which is already fixed in git head.

*** This issue has been marked as a duplicate of issue 16188 ***