[Issue 20319] New: cast causing illegal instruction (core dump) in compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 25 05:28:15 UTC 2019


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

          Issue ID: 20319
           Summary: cast causing illegal instruction (core dump) in
                    compiler
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: siudej at gmail.com

test on run.dlang.io
no compiler arguments
all dmd versions

code:
```
void main()
{
    auto data = cast(const char[5][]) "qwert";
}
```
output:
```
Up to      2.085.1: Success and no output
Since      2.086.1: Status -4 and no output
```
Nightly gives `output: Illegal instruction (core dumped)`.

--


More information about the Digitalmars-d-bugs mailing list