www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18012] New: [reg 2.077.0] segfault in dmd

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

          Issue ID: 18012
           Summary: [reg 2.077.0] segfault in dmd
           Product: D
           Version: D2
          Hardware: x86_64
               URL: http://dlang.org/
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: paolo.invernizzi gmail.com

Created attachment 1665
  --> https://issues.dlang.org/attachment.cgi?id=1665&action=edit
reduced source code

reduced by Dustmite

button/cli/package.d
--------------------
import button.build;

button/app.d
------------
import button.cli;

button/build.d
------------------
import button.graph;
import button.task;
import button.resource;
Graph!(Resource, Task) explicitGraph() {}

button/command.d
--------------------
import button.resource;

button/graph.d
--------------
class Graph(A, B){
    import std.array ;
    Appender!(B[]) _stackB;
}

button/resource.d
-----------------
struct Resource {}

button/task.d
-------------
import button.command;
struct Task {
    import std.datetime;
    SysTime lastExecuted = SysTime.min;
}

macos ():dustmite0.reduced pinver$ /usr/local/Cellar/dmd/2.076.1/bin/dmd -o-
button/app.d
macos ():dustmite0.reduced pinver$ /usr/local/Cellar/dmd/2.077.0/bin/dmd -o-
button/app.d
Segmentation fault: 11

--
Nov 25