www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20830] New: dmd 2.092.0 crashes during compilation.

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

          Issue ID: 20830
           Summary: dmd 2.092.0 crashes during compilation.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kntroh gmail.com

dmd 2.092.0 crashes during compilation this code:

interface T() { }
alias T!() A;
alias T!() B;
alias T!() C;

//class D : A, B { } // OK, dmd 2.092.0 will print a compilation error and the
exit code will be 1.
class D : A, B, C { } // dmd 2.092.0 will be crash and the exit code will be
-1073741819.

Windows 8.1 Pro 64-bit:

    >dmd test.d
    test.d(7): Error: class test.D inherits from duplicate interface T

    >echo %ERRORLEVEL%
    -1073741819

Linux Mint 19 (Tara) 64-bit:

    $ dmd test.d
    test.d(8): Error: class test.D inherits from duplicate interface T
    Segmentation fault
    $

--
May 13 2020