www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15875] New: "d o(int[a]a)(){}" causes DMD segfault

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

          Issue ID: 15875
           Summary: "d o(int[a]a)(){}" causes DMD segfault
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: initrd.gz gmail.com

File contents:

    d o(int[a]a)(){}

Compiling this with `dmd -c -o- /tmp/derr.d` with DMD 2.070.2 on x86-64 Linux
causes DMD to pause for roughly two seconds, then exit with a segfault and no
other output.

Found by American Fuzzy Lop

--
Apr 04 2016