www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15876] New: "a[{keyword" causes DMD to segfault

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

          Issue ID: 15876
           Summary: "a[{keyword" causes DMD to 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

Probably related to https://issues.dlang.org/show_bug.cgi?id=15855, though it
apparently applies to more than just the for keyword.

Example file contents (one file per line):

    o[{scope(x
    o[{template
    d(={for
    typeof){for
    p[{alias
    p(={alias

Similar to the linked issue, DMD spits out some error messages and then
terminates with a segfault. DMD v2.070.2

--
Apr 04 2016